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

Issue 508263002: Simplify ZoomController by removing DefaultZoomLevel prefs machinery. (Closed)

Created:
6 years, 3 months ago by wjmaclean
Modified:
6 years, 3 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Simplify ZoomController by removing DefaultZoomLevel prefs machinery. In preparation for moving to multiple HostZoomMaps (one-per StoragePartition), it is helpful to simplify ZoomController by removing the prefs machinery for DefaultZoomLevel, and instead rely on getting this value from the HostZoomMap. The calls to ZoomController::UpdateState() that used to be triggered directly by the prefs changes still occur, though by a roundtrip from PrefsTabHelper via IPC to RenderViewImpl and then by IPC back to the HostZoomMap, which in turn notifies its observers. This only happens in cases where the change in DefaultZoomLevel actually causes the RenderViewImpl to change its zoom, so it is a subtle change in behaviour from before. BUG=335317 Committed: https://crrev.com/32a991c969d22f900e0b234b7c2653cc79cc2aeb Cr-Commit-Position: refs/heads/master@{#292920}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -46 lines) Patch
M chrome/browser/ui/zoom/zoom_controller.h View 1 2 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/ui/zoom/zoom_controller.cc View 5 chunks +13 lines, -26 lines 0 comments Download
M chrome/browser/ui/zoom/zoom_controller_browsertest.cc View 1 2 chunks +63 lines, -0 lines 0 comments Download
M chrome/browser/ui/zoom/zoom_controller_unittest.cc View 1 chunk +0 lines, -17 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
wjmaclean
wjmaclean@chromium.org changed reviewers: + dbeam@chromium.org
6 years, 3 months ago (2014-08-27 18:42:34 UTC) #1
wjmaclean
dbeam@ - since this involves a subtle behavioural change, would you mind taking a look? ...
6 years, 3 months ago (2014-08-27 18:51:30 UTC) #2
Dan Beam
lgtm https://codereview.chromium.org/508263002/diff/1/chrome/browser/ui/zoom/zoom_controller.h File chrome/browser/ui/zoom/zoom_controller.h (right): https://codereview.chromium.org/508263002/diff/1/chrome/browser/ui/zoom/zoom_controller.h#newcode78 chrome/browser/ui/zoom/zoom_controller.h:78: return content::HostZoomMap::GetDefaultForBrowserContext(browser_context_) -> at end https://codereview.chromium.org/508263002/diff/1/chrome/browser/ui/zoom/zoom_controller_browsertest.cc File chrome/browser/ui/zoom/zoom_controller_browsertest.cc ...
6 years, 3 months ago (2014-08-27 22:46:09 UTC) #3
wjmaclean
Cleaned up patch for landing. https://codereview.chromium.org/508263002/diff/1/chrome/browser/ui/zoom/zoom_controller.h File chrome/browser/ui/zoom/zoom_controller.h (right): https://codereview.chromium.org/508263002/diff/1/chrome/browser/ui/zoom/zoom_controller.h#newcode78 chrome/browser/ui/zoom/zoom_controller.h:78: return content::HostZoomMap::GetDefaultForBrowserContext(browser_context_) On 2014/08/27 ...
6 years, 3 months ago (2014-09-02 13:05:13 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjmaclean@chromium.org/508263002/20001
6 years, 3 months ago (2014-09-02 13:06:16 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001) as 95211d14f66c27c5d309fcf985a6049fd32900c0
6 years, 3 months ago (2014-09-02 14:15:57 UTC) #7
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:18:18 UTC) #8
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/32a991c969d22f900e0b234b7c2653cc79cc2aeb
Cr-Commit-Position: refs/heads/master@{#292920}

Powered by Google App Engine
This is Rietveld 408576698