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

Unified Diff: chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm

Issue 968213003: Don't hide the zoom icon when not at default zoom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add regression test. Created 5 years, 10 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 | « no previous file | chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm b/chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm
index 8378993b42acf0d8b98143368c4714a60319d6c5..659f2a6e1a8744d6752b300a6add5d3bf94b5c9e 100644
--- a/chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm
@@ -151,7 +151,7 @@ void ZoomDecoration::OnClose() {
// If the page is at default zoom then hiding the zoom decoration
// was suppressed while the bubble was open. Now that the bubble is
// closed the decoration can be hidden.
- if (IsVisible()) {
+ if (IsAtDefaultZoom() && IsVisible()) {
SetVisible(false);
owner_->OnDecorationsChanged();
}
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698