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

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

Issue 8198007: Remove PrefService::ScheduleSavePersistentPrefs and SavePersistentPrefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos Created 9 years, 2 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/ui/webui/options/core_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/core_options_handler.cc b/chrome/browser/ui/webui/options/core_options_handler.cc
index 98c5a77bdf9dc403a17efc6ff17b03e4d23469d2..4b5d7f007807ee01329033bd1bbe199f2bdcaedd 100644
--- a/chrome/browser/ui/webui/options/core_options_handler.cc
+++ b/chrome/browser/ui/webui/options/core_options_handler.cc
@@ -216,7 +216,6 @@ void CoreOptionsHandler::SetPref(const std::string& pref_name,
return;
}
- pref_service->ScheduleSavePersistentPrefs();
ProcessUserMetric(value, metric);
}
@@ -224,7 +223,6 @@ void CoreOptionsHandler::ClearPref(const std::string& pref_name,
const std::string& metric) {
PrefService* pref_service = Profile::FromWebUI(web_ui_)->GetPrefs();
pref_service->ClearPref(pref_name.c_str());
- pref_service->ScheduleSavePersistentPrefs();
if (!metric.empty())
UserMetrics::RecordComputedAction(metric);

Powered by Google App Engine
This is Rietveld 408576698