Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Unified Diff: chrome/browser/browsing_data/browsing_data_remover_impl.h

Issue 2781083002: Fix the multi-threaded access to WeakPtr<BrowsingDataRemoverImpl> (Closed)
Patch Set: Static method to local namespace. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/browsing_data/browsing_data_remover_impl.h
diff --git a/chrome/browser/browsing_data/browsing_data_remover_impl.h b/chrome/browser/browsing_data/browsing_data_remover_impl.h
index 9889aea080b5a32f73939cc5e63899e996fa35eb..41281c141955a7e1893a9cdc829d86fa86d72c7d 100644
--- a/chrome/browser/browsing_data/browsing_data_remover_impl.h
+++ b/chrome/browser/browsing_data/browsing_data_remover_impl.h
@@ -205,6 +205,9 @@ class BrowsingDataRemoverImpl : public BrowsingDataRemover {
// Returns true if we're all done.
bool AllDone();
+ // Retrieve a UI thread-bound weak pointer to this BrowsingDataRemoverImpl.
+ base::WeakPtr<BrowsingDataRemoverImpl> GetWeakPtr();
+
// The browser context we're to remove from.
content::BrowserContext* browser_context_;

Powered by Google App Engine
This is Rietveld 408576698