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

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: Cross-platform unittest for Issue 32919 Created 6 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/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index d8abe54a9b8395a664840d86570067995555bff3..66eef6fac3b52ba78c4ac54ea462604ac9a399df 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 commands state based on the zoom state
+ command_controller_->ZoomStateChanged();
}
}

Powered by Google App Engine
This is Rietveld 408576698