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

Unified Diff: chrome/browser/ui/browser_command_controller.cc

Issue 10736028: Refactor browser window zoom handling and enable zoom icon on all platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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/browser_command_controller.cc
diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc
index a04ac5db1d77f35ba41f349e10341b7bab1ee255..d738c879189066e3ae4032103b20eb6ee3ef89e0 100644
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -870,10 +870,7 @@ void BrowserCommandController::UpdateCommandsForTabState() {
// Page-related commands
window()->SetStarredState(
current_tab_contents->bookmark_tab_helper()->is_starred());
- window()->SetZoomIconState(
- current_tab_contents->zoom_controller()->zoom_icon_state());
- window()->SetZoomIconTooltipPercent(
- current_tab_contents->zoom_controller()->zoom_percent());
+ window()->ZoomChangedForActiveTab(false);
command_updater_.UpdateCommandEnabled(IDC_VIEW_SOURCE,
CanViewSource(browser_));
command_updater_.UpdateCommandEnabled(IDC_EMAIL_PAGE_LOCATION,

Powered by Google App Engine
This is Rietveld 408576698