summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/options/language_options_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/webui/options/language_options_handler.cc')
-rw-r--r--chrome/browser/ui/webui/options/language_options_handler.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/chrome/browser/ui/webui/options/language_options_handler.cc b/chrome/browser/ui/webui/options/language_options_handler.cc
index 31f188b..684d78b 100644
--- a/chrome/browser/ui/webui/options/language_options_handler.cc
+++ b/chrome/browser/ui/webui/options/language_options_handler.cc
@@ -110,9 +110,5 @@ void LanguageOptionsHandler::SetApplicationLocale(
void LanguageOptionsHandler::RestartCallback(const ListValue* args) {
UserMetrics::RecordAction(UserMetricsAction("LanguageOptions_Restart"));
-
- // Set the flag to restore state after the restart.
- PrefService* pref_service = g_browser_process->local_state();
- pref_service->SetBoolean(prefs::kRestartLastSessionOnShutdown, true);
- BrowserList::CloseAllBrowsersAndExit();
+ BrowserList::AttemptRestart();
}