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

Unified Diff: chrome/browser/ui/webui/settings/reset_settings_handler.cc

Issue 2784323002: MD Settings: Second try at fixing ResetSettingsHandler crash (Closed)
Patch Set: fix Created 3 years, 9 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
« no previous file with comments | « chrome/browser/profile_resetter/brandcode_config_fetcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/settings/reset_settings_handler.cc
diff --git a/chrome/browser/ui/webui/settings/reset_settings_handler.cc b/chrome/browser/ui/webui/settings/reset_settings_handler.cc
index a41fbae677337d9c0495d3119716ea4e1e546995..00ed48540473a17b45bfcf4fa641ce9d454a1b72 100644
--- a/chrome/browser/ui/webui/settings/reset_settings_handler.cc
+++ b/chrome/browser/ui/webui/settings/reset_settings_handler.cc
@@ -145,9 +145,9 @@ void ResetSettingsHandler::HandleResetProfileSettings(
DCHECK(brandcode_.empty() || config_fetcher_);
if (config_fetcher_ && config_fetcher_->IsActive()) {
// Reset once the prefs are fetched.
- config_fetcher_->SetCallback(base::Bind(
- &ResetSettingsHandler::ResetProfile, weak_ptr_factory_.GetWeakPtr(),
- callback_id, send_settings, request_origin));
+ config_fetcher_->SetCallback(base::Bind(&ResetSettingsHandler::ResetProfile,
+ base::Unretained(this), callback_id,
+ send_settings, request_origin));
} else {
ResetProfile(callback_id, send_settings, request_origin);
}
« no previous file with comments | « chrome/browser/profile_resetter/brandcode_config_fetcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698