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

Unified Diff: chrome/browser/ui/views/frame/system_menu_model_delegate.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/views/frame/system_menu_model_delegate.cc
===================================================================
--- chrome/browser/ui/views/frame/system_menu_model_delegate.cc (revision 144460)
+++ chrome/browser/ui/views/frame/system_menu_model_delegate.cc (working copy)
@@ -8,6 +8,7 @@
#include "chrome/browser/command_updater.h"
#include "chrome/browser/sessions/tab_restore_service.h"
#include "chrome/browser/sessions/tab_restore_service_factory.h"
+#include "chrome/browser/ui/browser_commands.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
@@ -28,7 +29,7 @@
}
bool SystemMenuModelDelegate::IsCommandIdEnabled(int command_id) const {
- return browser_->command_updater()->IsCommandEnabled(command_id);
+ return chrome::IsCommandEnabled(browser_, command_id);
}
bool SystemMenuModelDelegate::GetAcceleratorForCommandId(int command_id,
@@ -54,5 +55,5 @@
}
void SystemMenuModelDelegate::ExecuteCommand(int command_id) {
- browser_->ExecuteCommandIfEnabled(command_id);
+ chrome::ExecuteCommand(browser_, command_id);
}
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/location_bar/chrome_to_mobile_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698