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

Unified Diff: chrome/browser/ui/webui/ntp/ntp_login_handler.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/ntp/ntp_login_handler.cc
===================================================================
--- chrome/browser/ui/webui/ntp/ntp_login_handler.cc (revision 144460)
+++ chrome/browser/ui/webui/ntp/ntp_login_handler.cc (working copy)
@@ -23,6 +23,7 @@
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/sync/profile_sync_service_factory.h"
#include "chrome/browser/ui/browser.h"
+#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/chrome_pages.h"
@@ -141,8 +142,7 @@
}
#endif
} else if (args->GetSize() == 4 &&
- browser->command_updater()->IsCommandEnabled(
- IDC_SHOW_AVATAR_MENU)) {
+ chrome::IsCommandEnabled(browser, IDC_SHOW_AVATAR_MENU)) {
// The user is signed in, show the profiles menu.
double x = 0;
double y = 0;
« no previous file with comments | « chrome/browser/ui/views/toolbar_view.cc ('k') | chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698