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

Unified Diff: chrome/browser/ui/gtk/browser_titlebar.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/ui/gtk/back_forward_button_gtk.cc ('k') | chrome/browser/ui/gtk/browser_toolbar_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/browser_titlebar.cc
===================================================================
--- chrome/browser/ui/gtk/browser_titlebar.cc (revision 144460)
+++ chrome/browser/ui/gtk/browser_titlebar.cc (working copy)
@@ -938,8 +938,7 @@
if (command_id == kShowWindowDecorationsCommand)
return true;
- return browser_window_->browser()->command_updater()->
- IsCommandEnabled(command_id);
+ return chrome::IsCommandEnabled(browser_window_->browser(), command_id);
}
bool BrowserTitlebar::IsCommandIdChecked(int command_id) const {
@@ -972,7 +971,7 @@
return;
}
- browser_window_->browser()->ExecuteCommand(command_id);
+ chrome::ExecuteCommand(browser_window_->browser(), command_id);
}
bool BrowserTitlebar::GetAcceleratorForCommandId(
« no previous file with comments | « chrome/browser/ui/gtk/back_forward_button_gtk.cc ('k') | chrome/browser/ui/gtk/browser_toolbar_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698