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

Issue 809223006: Check temporary zoom status when sending zoom level in navigation. (Closed)

Created:
5 years, 11 months ago by wjmaclean
Modified:
5 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, bshe
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Check temporary zoom status when sending zoom level in navigation. This CL causes the AsyncResourceHandler code to check for temporary zoom levels for the current view before sending the new zoom level during navigation. This will allow tabs with per-tab scope zoom settings to retain their current (temporary) zoom levels during same-origin navigations. Committed: https://crrev.com/c62490491303cf2650bc3b44c2a4c630ed615831 Cr-Commit-Position: refs/heads/master@{#316301}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Revise as per comments. #

Total comments: 6

Patch Set 3 : Add test, remove incorrect comment. #

Total comments: 6

Patch Set 4 : Address comments. #

Total comments: 8

Patch Set 5 : Fix indents, add test comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -16 lines) Patch
M content/browser/host_zoom_map_impl.h View 1 2 3 2 chunks +14 lines, -0 lines 0 comments Download
M content/browser/host_zoom_map_impl.cc View 1 3 chunks +34 lines, -11 lines 0 comments Download
A content/browser/host_zoom_map_impl_browsertest.cc View 1 2 3 4 1 chunk +86 lines, -0 lines 0 comments Download
M content/browser/loader/async_resource_handler.cc View 1 2 1 chunk +9 lines, -5 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (4 generated)
wjmaclean
[WIP] This CL will need some discussion about desired behaviour when navigating tabs with temporary ...
5 years, 11 months ago (2014-12-30 20:07:38 UTC) #3
Fady Samuel
This seems reasonable to me. lgtm.
5 years, 11 months ago (2015-01-05 16:24:28 UTC) #4
wjmaclean
Closing this issue, as we're taking a different approach.
5 years, 11 months ago (2015-01-06 16:24:54 UTC) #5
wjmaclean
Re-opening this issues, as we will need it to provide a sensible solution to virtual ...
5 years, 10 months ago (2015-02-11 15:08:13 UTC) #6
Charlie Reis
Sorry for the delay-- a few thoughts below. https://codereview.chromium.org/809223006/diff/1/content/browser/loader/async_resource_handler.cc File content/browser/loader/async_resource_handler.cc (right): https://codereview.chromium.org/809223006/diff/1/content/browser/loader/async_resource_handler.cc#newcode202 content/browser/loader/async_resource_handler.cc:202: // ...
5 years, 10 months ago (2015-02-11 18:34:32 UTC) #7
wjmaclean
PTAL? https://codereview.chromium.org/809223006/diff/1/content/browser/loader/async_resource_handler.cc File content/browser/loader/async_resource_handler.cc (right): https://codereview.chromium.org/809223006/diff/1/content/browser/loader/async_resource_handler.cc#newcode202 content/browser/loader/async_resource_handler.cc:202: // this logic could move into HostZoomMap, in ...
5 years, 10 months ago (2015-02-11 20:29:34 UTC) #8
Charlie Reis
Thanks, that's better. Some nits and a question below. Also, can you add tests for ...
5 years, 10 months ago (2015-02-11 20:56:34 UTC) #9
wjmaclean
Updated with a test ... PTAL? https://codereview.chromium.org/809223006/diff/20001/content/browser/host_zoom_map_impl.h File content/browser/host_zoom_map_impl.h (right): https://codereview.chromium.org/809223006/diff/20001/content/browser/host_zoom_map_impl.h#newcode118 content/browser/host_zoom_map_impl.h:118: double GetZoomLevelForHostAndSchemeInternal(const std::string& ...
5 years, 10 months ago (2015-02-12 15:59:36 UTC) #10
Charlie Reis
Great-- I appreciate the test. A few comments on readability and it should be good ...
5 years, 10 months ago (2015-02-12 21:51:41 UTC) #11
wjmaclean
creis@ I think I've addressed all your comments, PTAL? https://codereview.chromium.org/809223006/diff/40001/content/browser/host_zoom_map_content_browsertest.cc File content/browser/host_zoom_map_content_browsertest.cc (right): https://codereview.chromium.org/809223006/diff/40001/content/browser/host_zoom_map_content_browsertest.cc#newcode16 content/browser/host_zoom_map_content_browsertest.cc:16: ...
5 years, 10 months ago (2015-02-13 15:57:53 UTC) #12
Charlie Reis
Thanks. LGTM with nits. https://codereview.chromium.org/809223006/diff/60001/content/browser/host_zoom_map_impl_browsertest.cc File content/browser/host_zoom_map_impl_browsertest.cc (right): https://codereview.chromium.org/809223006/diff/60001/content/browser/host_zoom_map_impl_browsertest.cc#newcode36 content/browser/host_zoom_map_impl_browsertest.cc:36: url, render_process_id, view_id)); nit: Wrong ...
5 years, 10 months ago (2015-02-13 20:47:08 UTC) #13
wjmaclean
https://codereview.chromium.org/809223006/diff/60001/content/browser/host_zoom_map_impl_browsertest.cc File content/browser/host_zoom_map_impl_browsertest.cc (right): https://codereview.chromium.org/809223006/diff/60001/content/browser/host_zoom_map_impl_browsertest.cc#newcode36 content/browser/host_zoom_map_impl_browsertest.cc:36: url, render_process_id, view_id)); On 2015/02/13 20:47:08, Charlie Reis wrote: ...
5 years, 10 months ago (2015-02-13 21:01:15 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/809223006/80001
5 years, 10 months ago (2015-02-13 21:02:06 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-02-13 22:02:15 UTC) #18
commit-bot: I haz the power
5 years, 10 months ago (2015-02-13 22:02:59 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c62490491303cf2650bc3b44c2a4c630ed615831
Cr-Commit-Position: refs/heads/master@{#316301}

Powered by Google App Engine
This is Rietveld 408576698