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

Unified Diff: chrome/browser/chromeos/locale_change_guard.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
« no previous file with comments | « chrome/browser/chrome_to_mobile_service.cc ('k') | chrome/browser/command_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/locale_change_guard.cc
===================================================================
--- chrome/browser/chromeos/locale_change_guard.cc (revision 144460)
+++ chrome/browser/chromeos/locale_change_guard.cc (working copy)
@@ -17,6 +17,7 @@
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
+#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/pref_names.h"
@@ -86,7 +87,7 @@
Browser* browser = browser::FindTabbedBrowser(profile_, false);
if (browser)
- browser->ExecuteCommand(IDC_EXIT);
+ chrome::ExecuteCommand(browser, IDC_EXIT);
}
void LocaleChangeGuard::RevertLocaleChangeCallback(const ListValue* list) {
« no previous file with comments | « chrome/browser/chrome_to_mobile_service.cc ('k') | chrome/browser/command_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698