2024-05-13 23:36:09 +02:00
|
|
|
diff --git net/base/directory_lister.cc net/base/directory_lister.cc
|
2024-06-14 19:01:45 +02:00
|
|
|
index 9a9787aae0233..467cbef7f6c34 100644
|
2024-05-13 23:36:09 +02:00
|
|
|
--- 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
|