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

Unified Diff: chrome/browser/ui/webui/options/sync_setup_handler.cc

Issue 1869473002: Fixed crash on double profile delete operation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: param renaming. Created 4 years, 7 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/ui/webui/options/create_profile_handler.cc ('k') | chrome/browser/ui/webui/profile_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/sync_setup_handler.cc
diff --git a/chrome/browser/ui/webui/options/sync_setup_handler.cc b/chrome/browser/ui/webui/options/sync_setup_handler.cc
index 116af9641cba2897205d27f7abeb0720dc9d9718..f60512a80964fbae9618d4fd472f25825fffdff2 100644
--- a/chrome/browser/ui/webui/options/sync_setup_handler.cc
+++ b/chrome/browser/ui/webui/options/sync_setup_handler.cc
@@ -693,7 +693,9 @@ void SyncSetupHandler::HandleStopSyncing(const base::ListValue* args) {
if (delete_profile) {
// Do as BrowserOptionsHandler::DeleteProfile().
- webui::DeleteProfileAtPath(GetProfile()->GetPath(), web_ui());
+ webui::DeleteProfileAtPath(GetProfile()->GetPath(),
+ web_ui(),
+ ProfileMetrics::DELETE_PROFILE_SETTINGS);
}
}
#endif
« no previous file with comments | « chrome/browser/ui/webui/options/create_profile_handler.cc ('k') | chrome/browser/ui/webui/profile_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698