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

Unified Diff: chrome/browser/profiles/off_the_record_profile_impl.cc

Issue 954923005: Make command-zero reset page scale in addition to zoom level (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase again again Created 5 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/browser_commands_unittest.cc ('k') | chrome/browser/ui/browser_command_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/off_the_record_profile_impl.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc
index d78b31432e00fb3b4e8c2ce05a27b805b8a54dab..909b894a1d5105663612d55852d55f7c0d60526e 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -560,15 +560,17 @@ void OffTheRecordProfileImpl::OnParentZoomLevelChanged(
HostZoomMap* host_zoom_map = HostZoomMap::GetDefaultForBrowserContext(this);
switch (change.mode) {
case HostZoomMap::ZOOM_CHANGED_TEMPORARY_ZOOM:
- return;
+ return;
case HostZoomMap::ZOOM_CHANGED_FOR_HOST:
- host_zoom_map->SetZoomLevelForHost(change.host, change.zoom_level);
- return;
+ host_zoom_map->SetZoomLevelForHost(change.host, change.zoom_level);
+ return;
case HostZoomMap::ZOOM_CHANGED_FOR_SCHEME_AND_HOST:
- host_zoom_map->SetZoomLevelForHostAndScheme(change.scheme,
- change.host,
- change.zoom_level);
- return;
+ host_zoom_map->SetZoomLevelForHostAndScheme(change.scheme,
+ change.host,
+ change.zoom_level);
+ return;
+ case HostZoomMap::PAGE_SCALE_IS_ONE_CHANGED:
+ return;
}
}
« no previous file with comments | « chrome/browser/browser_commands_unittest.cc ('k') | chrome/browser/ui/browser_command_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698