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

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

Issue 11866004: Add scheme to HostZoomMap (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add namespace Created 7 years, 9 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/browser/ui/zoom/zoom_controller.h ('k') | chrome/browser/ui/zoom/zoom_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/zoom/zoom_controller.cc
diff --git a/chrome/browser/ui/zoom/zoom_controller.cc b/chrome/browser/ui/zoom/zoom_controller.cc
index 329222482bd85e0d60e483af7ed13cbaa7151b41..686d89e916d9e0cab1d176303140a0b34e57bfc4 100644
--- a/chrome/browser/ui/zoom/zoom_controller.cc
+++ b/chrome/browser/ui/zoom/zoom_controller.cc
@@ -68,8 +68,10 @@ void ZoomController::DidNavigateMainFrame(
UpdateState(std::string());
}
-void ZoomController::OnZoomLevelChanged(const std::string& host) {
- UpdateState(host);
+void ZoomController::OnZoomLevelChanged(
+ const content::HostZoomMap::ZoomLevelChange& change) {
+ if (change.mode != content::HostZoomMap::ZOOM_CHANGED_TEMPORARY_ZOOM)
+ UpdateState(change.host);
}
void ZoomController::UpdateState(const std::string& host) {
« no previous file with comments | « chrome/browser/ui/zoom/zoom_controller.h ('k') | chrome/browser/ui/zoom/zoom_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698