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

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

Issue 310913002: Issue 32919: Update the Zoom NSMenuItems (Zoom-In/Zoom-out/Actual-Size) when the zoom state changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 72a4fe4fc0849c6161c6d4ed8c0ffc075822890e..e39f8ccdd6a0eb0d04be789bb8481e949e155731 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -1849,6 +1849,8 @@ void Browser::OnZoomChanged(content::WebContents* source,
// Only show the zoom bubble for zoom changes in the active window.
window_->ZoomChangedForActiveTab(can_show_bubble && window_->IsActive() &&
!is_devtools());
+ // Change the zoom menu item state once the zoom has changed
+ command_controller_->ZoomStateChanged();
}
}
« no previous file with comments | « no previous file | chrome/browser/ui/browser_command_controller.h » ('j') | chrome/browser/ui/browser_commands.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698