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

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: fix mac 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 f2d7be66c2f743a0000fe8fcb34a4d9e7dabd32e..cdf32ddd97ce3136e9b368e31e4ab1989c7c2bad 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