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

Issue 1472703004: Reland #2 of: Move WebUI ownership from the RenderFrameHostManager to the RenderFrameHost. (Closed)

Created:
5 years, 1 month ago by carlosk
Modified:
5 years ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland #2 of: Move WebUI ownership from the RenderFrameHostManager to the RenderFrameHost. (Revert: https://codereview.chromium.org/1454883006) This change refactors the current ownership of the WebUI instance, moving it from the RenderFrameHostManager to the RenderFrameHost which is directly associated with the WebUI. The design document for this change is here: https://docs.google.com/a/chromium.org/document/d/1jrge5ulZ1YtqSR3WkNXzrtxhd3JXcWm8_zWBhEjaJtI BUG=508850, 552253 Committed: https://crrev.com/35f35afd20ceee979839d2ad2689c1fd700743cc Cr-Commit-Position: refs/heads/master@{#362385}

Patch Set 1 #

Patch Set 2 : Remove DCHECK breaking simultaneous navigations on the same frame. #

Patch Set 3 : Fixes for simultaneous navigations on the same frame. #

Patch Set 4 : Add RFHM::CommitPendingWebUI, extracted from RFHM::CommitPending. #

Patch Set 5 : Tests simulatneous navigation involving WebUIs; minor test improvements. #

Total comments: 14

Patch Set 6 : Test shared code now uses lambda functions. More comments. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+902 lines, -353 lines) Patch
M content/browser/frame_host/frame_tree.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M content/browser/frame_host/render_frame_host_delegate.h View 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_delegate.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 4 chunks +45 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 6 chunks +101 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.h View 1 2 3 4 5 14 chunks +39 lines, -88 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 5 29 chunks +169 lines, -206 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_browsertest.cc View 1 2 1 chunk +9 lines, -6 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 1 2 3 4 5 13 chunks +502 lines, -21 lines 3 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 2 chunks +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 6 chunks +15 lines, -19 lines 0 comments Download
M content/browser/webui/web_ui_impl.h View 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
carlosk
Oh well... The reland #1 [1] was reverted (now I'm glad I began counting). This ...
5 years, 1 month ago (2015-11-23 10:56:19 UTC) #2
carlosk
These changes should support simultaneous navigations properly. I added 4 new RFHM unit tests to ...
5 years ago (2015-11-25 16:57:48 UTC) #8
nasko
Thanks for the added tests, they helped a lot in understanding what is going on! ...
5 years ago (2015-11-25 22:15:50 UTC) #9
Charlie Reis
https://codereview.chromium.org/1472703004/diff/100001/content/browser/frame_host/render_frame_host_manager.h File content/browser/frame_host/render_frame_host_manager.h (right): https://codereview.chromium.org/1472703004/diff/100001/content/browser/frame_host/render_frame_host_manager.h#newcode653 content/browser/frame_host/render_frame_host_manager.h:653: // Makes the pending WebUI on the current RenderFrameHost ...
5 years ago (2015-11-26 07:02:51 UTC) #10
carlosk
Thanks. https://codereview.chromium.org/1472703004/diff/100001/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/1472703004/diff/100001/content/browser/frame_host/render_frame_host_manager.cc#newcode702 content/browser/frame_host/render_frame_host_manager.cc:702: CommitPendingWebUI(); On 2015/11/25 22:15:50, nasko wrote: > On ...
5 years ago (2015-11-26 10:58:03 UTC) #11
nasko
Just one question on the unit test, otherwise I think it is good. https://codereview.chromium.org/1472703004/diff/120001/content/browser/frame_host/render_frame_host_manager_unittest.cc File ...
5 years ago (2015-11-30 16:57:49 UTC) #12
carlosk
Thanks. https://codereview.chromium.org/1472703004/diff/120001/content/browser/frame_host/render_frame_host_manager_unittest.cc File content/browser/frame_host/render_frame_host_manager_unittest.cc (right): https://codereview.chromium.org/1472703004/diff/120001/content/browser/frame_host/render_frame_host_manager_unittest.cc#newcode3069 content/browser/frame_host/render_frame_host_manager_unittest.cc:3069: EXPECT_FALSE(GetPendingFrameHost(manager)); On 2015/11/30 16:57:49, nasko wrote: > Why ...
5 years ago (2015-11-30 19:54:16 UTC) #13
Charlie Reis
LGTM if Nasko's happy.
5 years ago (2015-11-30 23:52:54 UTC) #14
nasko
LGTM https://codereview.chromium.org/1472703004/diff/120001/content/browser/frame_host/render_frame_host_manager_unittest.cc File content/browser/frame_host/render_frame_host_manager_unittest.cc (right): https://codereview.chromium.org/1472703004/diff/120001/content/browser/frame_host/render_frame_host_manager_unittest.cc#newcode3069 content/browser/frame_host/render_frame_host_manager_unittest.cc:3069: EXPECT_FALSE(GetPendingFrameHost(manager)); On 2015/11/30 19:54:16, carlosk wrote: > On ...
5 years ago (2015-12-01 00:52:14 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1472703004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1472703004/120001
5 years ago (2015-12-01 08:48:06 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:120001)
5 years ago (2015-12-01 10:55:48 UTC) #19
commit-bot: I haz the power
5 years ago (2015-12-01 10:56:37 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/35f35afd20ceee979839d2ad2689c1fd700743cc
Cr-Commit-Position: refs/heads/master@{#362385}

Powered by Google App Engine
This is Rietveld 408576698