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

Unified Diff: chrome/browser/chromeos/status/input_method_menu.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/chromeos/status/input_method_menu.cc
diff --git a/chrome/browser/chromeos/status/input_method_menu.cc b/chrome/browser/chromeos/status/input_method_menu.cc
index 8a8037e6e153283440cf23bde8f50ebd2600aad3..1402e176a8d773cdfac5380ef42c908accec6f66 100644
--- a/chrome/browser/chromeos/status/input_method_menu.cc
+++ b/chrome/browser/chromeos/status/input_method_menu.cc
@@ -426,14 +426,13 @@ void InputMethodMenu::PreferenceUpdateNeeded(
// Sometimes (e.g. initial boot) |previous_input_method.id()| is empty.
previous_input_method_pref_.SetValue(previous_input_method.id());
current_input_method_pref_.SetValue(current_input_method.id());
- pref_service_->ScheduleSavePersistentPrefs();
}
} else if (screen_mode_ == StatusAreaHost::kViewsLoginMode ||
screen_mode_ == StatusAreaHost::kWebUILoginMode) {
if (g_browser_process && g_browser_process->local_state()) {
g_browser_process->local_state()->SetString(
language_prefs::kPreferredKeyboardLayout, current_input_method.id());
- g_browser_process->local_state()->SavePersistentPrefs();
+ g_browser_process->local_state()->CommitPendingWrite();
}
}
}

Powered by Google App Engine
This is Rietveld 408576698