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

Unified Diff: components/zoom/zoom_controller.cc

Issue 2891883002: Revert of Updates Zoom bubble layout and adds +/- buttons (Closed)
Patch Set: Created 3 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
« no previous file with comments | « chrome/test/base/test_browser_window.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/zoom/zoom_controller.cc
diff --git a/components/zoom/zoom_controller.cc b/components/zoom/zoom_controller.cc
index 0242a3510bc6fd5b5accbdc610ff510c56b418c5..dd3dafcd4b2298d14c6178ecb6fabed7fdd7bc00 100644
--- a/components/zoom/zoom_controller.cc
+++ b/components/zoom/zoom_controller.cc
@@ -347,12 +347,8 @@
ZoomChangedEventData zoom_change_data = *event_data_;
event_data_.reset();
// The zoom bubble should not be shown for zoom changes where the host
- // is empty or when zoom level is not changed from default.
- const bool changed_from_default =
- zoom_change_data.new_zoom_level != zoom_change_data.old_zoom_level ||
- zoom_change_data.new_zoom_level != GetDefaultZoomLevel();
- zoom_change_data.can_show_bubble =
- can_show_bubble_ && !host.empty() && changed_from_default;
+ // is empty.
+ zoom_change_data.can_show_bubble = can_show_bubble_ && !host.empty();
for (auto& observer : observers_)
observer.OnZoomChanged(zoom_change_data);
} else {
« no previous file with comments | « chrome/test/base/test_browser_window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698