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

Unified Diff: chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler2.cc

Issue 10677009: Move command handling and updating off Browser and onto a helper object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/options2/chromeos/cros_language_options_handler2.cc
===================================================================
--- chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler2.cc (revision 144460)
+++ chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler2.cc (working copy)
@@ -18,6 +18,7 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chromeos/input_method/input_method_manager.h"
#include "chrome/browser/chromeos/input_method/input_method_util.h"
+#include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
@@ -214,11 +215,7 @@
void CrosLanguageOptionsHandler::RestartCallback(const ListValue* args) {
content::RecordAction(UserMetricsAction("LanguageOptions_SignOut"));
-
- Browser* browser = browser::FindBrowserWithWebContents(
- web_ui()->GetWebContents());
- if (browser)
- browser->ExecuteCommand(IDC_EXIT);
+ browser::AttemptUserExit();
}
void CrosLanguageOptionsHandler::InputMethodDisableCallback(

Powered by Google App Engine
This is Rietveld 408576698