cef/patch/patches/raw_ptr_3239.patch

27 lines
848 B
Diff

diff --git net/base/directory_lister.cc net/base/directory_lister.cc
index 9a9787aae0233..467cbef7f6c34 100644
--- net/base/directory_lister.cc
+++ net/base/directory_lister.cc
@@ -200,7 +200,7 @@ void DirectoryLister::OnListFile(const DirectoryListerData& data) {
}
void DirectoryLister::OnListDone(int error) {
- delegate_->OnListDone(error);
+ delegate_.ExtractAsDangling()->OnListDone(error);
}
} // namespace net
diff --git net/base/directory_lister.h net/base/directory_lister.h
index 991d15b79878e..b4a5534ea2c87 100644
--- net/base/directory_lister.h
+++ net/base/directory_lister.h
@@ -133,7 +133,7 @@ class NET_EXPORT DirectoryLister {
void OnListDone(int error);
scoped_refptr<Core> core_;
- const raw_ptr<DirectoryListerDelegate> delegate_;
+ raw_ptr<DirectoryListerDelegate> delegate_;
};
} // namespace net