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

Unified Diff: chrome/browser/chromeos/profiles/profile_helper.cc

Issue 2175703002: Implement a task scheduler for BrowsingDataRemover (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bdr-race-condition
Patch Set: Formatting. Created 4 years, 4 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/chromeos/profiles/profile_helper.cc
diff --git a/chrome/browser/chromeos/profiles/profile_helper.cc b/chrome/browser/chromeos/profiles/profile_helper.cc
index 91ff48c42cd6d40251e1c900dc529c808b52e049..e442bff27810acee3d69841c6672e6f56b9c2003 100644
--- a/chrome/browser/chromeos/profiles/profile_helper.cc
+++ b/chrome/browser/chromeos/profiles/profile_helper.cc
@@ -262,9 +262,9 @@ void ProfileHelper::ClearSigninProfile(const base::Closure& on_clear_callback) {
browsing_data_remover_ =
BrowsingDataRemoverFactory::GetForBrowserContext(GetSigninProfile());
browsing_data_remover_->AddObserver(this);
- browsing_data_remover_->Remove(BrowsingDataRemover::Unbounded(),
- BrowsingDataRemover::REMOVE_SITE_DATA,
- BrowsingDataHelper::ALL);
+ browsing_data_remover_->RemoveAndReply(
+ BrowsingDataRemover::Unbounded(), BrowsingDataRemover::REMOVE_SITE_DATA,
+ BrowsingDataHelper::ALL, this);
} else {
on_clear_profile_stage_finished_.Run();
}

Powered by Google App Engine
This is Rietveld 408576698