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

Issue 2374863002: Remove usage of HostZoomMap from c/b/loader via ReadyToCommitNavigation (Closed)

Created:
4 years, 2 months ago by scottmg
Modified:
4 years, 1 month ago
Reviewers:
bengr, nasko
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, wjmaclean, creis+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, nasko+codewatch_chromium.org, jam, Randy Smith (Not in Mondays), yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, loading-reviews_chromium.org, darin (slow to review), mmenke
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove usage of HostZoomMap from c/b/loader via ReadyToCommitNavigation Had to pull the mojom out into a separate interface because Frame itself isn't associated, so a SetHostZoomLevel on Frame would be racy with the FrameMsg_CommitNavigation. Also fixes the IFrameZoomBrowserTest under PlzNavigate because it uses the new machinery. R=nasko@chromium.org BUG=609607 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/276753cf9b79b05acdc4a262241b8b31bf212e14 Cr-Commit-Position: refs/heads/master@{#428084}

Patch Set 1 #

Patch Set 2 : try separate mojom for Associated, crashes on registration #

Total comments: 6

Patch Set 3 : fixes #

Patch Set 4 : style #

Patch Set 5 : WebContentsUserData to fix lifetimes #

Patch Set 6 : tidy #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : android #

Total comments: 6

Patch Set 10 : rebase, address comments #

Patch Set 11 : fix rebase for filtered tests #

Total comments: 8

Patch Set 12 : nits and dcheck #

Patch Set 13 : init #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -112 lines) Patch
M build/android/pylib/gtest/filter/content_browsertests_disabled View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/previews/previews_infobar_tab_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/host_zoom_map_impl.h View 1 chunk +0 lines, -2 lines 0 comments Download
A content/browser/host_zoom_map_observer.h View 1 2 3 4 5 6 7 8 9 1 chunk +30 lines, -0 lines 0 comments Download
A content/browser/host_zoom_map_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +45 lines, -0 lines 0 comments Download
M content/browser/loader/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/loader/async_resource_handler.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -16 lines 0 comments Download
M content/browser/loader/async_resource_handler_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/loader/async_revalidation_manager_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/loader/resource_message_filter.h View 4 chunks +0 lines, -7 lines 0 comments Download
M content/browser/loader/resource_message_filter.cc View 4 chunks +0 lines, -9 lines 0 comments Download
M content/browser/loader/url_loader_factory_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
A + content/common/host_zoom.mojom View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -8 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -7 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 7 chunks +12 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +33 lines, -5 lines 0 comments Download
M content/renderer/render_frame_impl_browsertest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +30 lines, -0 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -26 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 4 chunks +0 lines, -6 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -17 lines 0 comments Download
M testing/buildbot/filters/browser-side-navigation.linux.content_browsertests.filter View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 71 (52 generated)
nasko
What part of it is racy? Is it in PlzNavigate mode, current mode, or both? ...
4 years, 2 months ago (2016-09-28 01:32:05 UTC) #2
scottmg
On 2016/09/28 01:32:05, nasko (slow) wrote: > What part of it is racy? Is it ...
4 years, 2 months ago (2016-09-28 01:52:39 UTC) #3
scottmg
This seems to work reasonably now. I don't love that HostZoom is its own thing, ...
4 years, 2 months ago (2016-09-28 02:44:53 UTC) #7
scottmg
On 2016/09/28 02:44:53, scottmg wrote: > This seems to work reasonably now. I don't love ...
4 years, 2 months ago (2016-09-28 16:30:09 UTC) #14
scottmg
On 2016/09/28 16:30:09, scottmg wrote: > On 2016/09/28 02:44:53, scottmg wrote: > > This seems ...
4 years, 2 months ago (2016-09-28 21:27:30 UTC) #31
nasko
Now that ReadyToCommitNavigation is looking like it will stick around, I think this one is ...
4 years, 2 months ago (2016-10-17 22:49:03 UTC) #35
scottmg
Thanks! Sorry for the laggard turnaround time. https://codereview.chromium.org/2374863002/diff/160001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2374863002/diff/160001/content/browser/frame_host/render_frame_host_impl.cc#newcode315 content/browser/frame_host/render_frame_host_impl.cc:315: HostZoomMapObserver::CreateForWebContents(delegate->GetAsWebContents()); On ...
4 years, 1 month ago (2016-10-25 20:12:40 UTC) #38
nasko
LGTM with some minor nits. https://codereview.chromium.org/2374863002/diff/200001/content/browser/host_zoom_map_observer.cc File content/browser/host_zoom_map_observer.cc (right): https://codereview.chromium.org/2374863002/diff/200001/content/browser/host_zoom_map_observer.cc#newcode23 content/browser/host_zoom_map_observer.cc:23: if (navigation_handle->IsInMainFrame()) { minor ...
4 years, 1 month ago (2016-10-25 23:17:08 UTC) #41
scottmg
Thanks! https://codereview.chromium.org/2374863002/diff/200001/content/browser/host_zoom_map_observer.cc File content/browser/host_zoom_map_observer.cc (right): https://codereview.chromium.org/2374863002/diff/200001/content/browser/host_zoom_map_observer.cc#newcode23 content/browser/host_zoom_map_observer.cc:23: if (navigation_handle->IsInMainFrame()) { On 2016/10/25 23:17:07, nasko (slow) ...
4 years, 1 month ago (2016-10-25 23:30:00 UTC) #42
scottmg
https://codereview.chromium.org/2374863002/diff/200001/content/browser/host_zoom_map_observer.cc File content/browser/host_zoom_map_observer.cc (right): https://codereview.chromium.org/2374863002/diff/200001/content/browser/host_zoom_map_observer.cc#newcode24 content/browser/host_zoom_map_observer.cc:24: if (host_zoom_.is_bound()) { On 2016/10/25 23:30:00, scottmg wrote: > ...
4 years, 1 month ago (2016-10-26 00:23:02 UTC) #47
scottmg
On 2016/10/26 00:23:02, scottmg wrote: > https://codereview.chromium.org/2374863002/diff/200001/content/browser/host_zoom_map_observer.cc > File content/browser/host_zoom_map_observer.cc (right): > > https://codereview.chromium.org/2374863002/diff/200001/content/browser/host_zoom_map_observer.cc#newcode24 > ...
4 years, 1 month ago (2016-10-27 01:55:00 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2374863002/260001
4 years, 1 month ago (2016-10-27 01:58:16 UTC) #59
scottmg
+bengr for chrome/browser/previews/OWNERS.
4 years, 1 month ago (2016-10-27 02:03:04 UTC) #61
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/290595)
4 years, 1 month ago (2016-10-27 02:06:16 UTC) #63
nasko
https://codereview.chromium.org/2374863002/diff/200001/content/browser/host_zoom_map_observer.cc File content/browser/host_zoom_map_observer.cc (right): https://codereview.chromium.org/2374863002/diff/200001/content/browser/host_zoom_map_observer.cc#newcode24 content/browser/host_zoom_map_observer.cc:24: if (host_zoom_.is_bound()) { On 2016/10/26 00:23:02, scottmg wrote: > ...
4 years, 1 month ago (2016-10-27 14:01:28 UTC) #64
bengr
chrome/browser/previews/* lgtm
4 years, 1 month ago (2016-10-27 18:13:52 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2374863002/260001
4 years, 1 month ago (2016-10-27 18:20:15 UTC) #67
commit-bot: I haz the power
Committed patchset #13 (id:260001)
4 years, 1 month ago (2016-10-27 18:25:45 UTC) #69
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 18:30:56 UTC) #71
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/276753cf9b79b05acdc4a262241b8b31bf212e14
Cr-Commit-Position: refs/heads/master@{#428084}

Powered by Google App Engine
This is Rietveld 408576698