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

Issue 1094153002: Move ClosePage() from RenderViewHost to WebContents. (Closed)

Created:
5 years, 8 months ago by nasko
Modified:
5 years, 7 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, yurys, darin-cc_chromium.org, devtools-reviews_chromium.org, chromium-apps-reviews_chromium.org, aandrey+blink_chromium.org, pfeldman, site-isolation-reviews_chromium.org, gunsch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move ClosePage() from RenderViewHost to WebContents. ClosePage is a page-level concept and because of the deprecation of RenderViewHost, it has to move. WebContents is the object representing page, so I'm moving this public API to it. BUG=304341, 478281 Committed: https://crrev.com/c0fceff6214f05360be23a5fc2ee578e9d7707aa Cr-Commit-Position: refs/heads/master@{#327719}

Patch Set 1 #

Total comments: 17

Patch Set 2 : Rebase on ToT #

Patch Set 3 : Fixes based on reviews. #

Total comments: 7

Patch Set 4 : Fix cast service compile failure and outstanding review comments. #

Patch Set 5 : Fix chromecast android compile failure. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -18 lines) Patch
M chrome/browser/devtools/devtools_ui_bindings.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/devtools/devtools_window.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/fast_unload_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/unload_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromecast/browser/android/cast_window_android.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromecast/browser/service/cast_service_simple.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/devtools/render_frame_devtools_agent_host.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 chunks +6 lines, -1 line 0 comments Download
M content/public/browser/render_view_host.h View 1 1 chunk +0 lines, -5 lines 0 comments Download
M content/public/browser/web_contents.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/browser/process_manager.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (8 generated)
nasko
Charlie, Can you take a look at this CL? It moves the ClosePage() from RenderViewHost ...
5 years, 8 months ago (2015-04-20 20:27:02 UTC) #2
dgozman
devtools lgtm https://codereview.chromium.org/1094153002/diff/1/content/browser/devtools/render_frame_devtools_agent_host.cc File content/browser/devtools/render_frame_devtools_agent_host.cc (right): https://codereview.chromium.org/1094153002/diff/1/content/browser/devtools/render_frame_devtools_agent_host.cc#newcode477 content/browser/devtools/render_frame_devtools_agent_host.cc:477: WebContentsImpl::FromRenderFrameHost(render_frame_host_)->ClosePage(); if (web_contents()) web_contents()->ClosePage();
5 years, 8 months ago (2015-04-21 05:13:32 UTC) #4
Charlie Reis
Nice! Just some cleanup tasks below. https://codereview.chromium.org/1094153002/diff/1/chrome/browser/ui/fast_unload_controller.cc File chrome/browser/ui/fast_unload_controller.cc (right): https://codereview.chromium.org/1094153002/diff/1/chrome/browser/ui/fast_unload_controller.cc#newcode418 chrome/browser/ui/fast_unload_controller.cc:418: // Null check ...
5 years, 8 months ago (2015-04-21 17:28:09 UTC) #5
nasko
rdevlin.cronin@chromium.org: Please review changes in extensions/ thestig@chromium.org: Please review changes in chrome/browser/ui https://codereview.chromium.org/1094153002/diff/1/chrome/browser/ui/fast_unload_controller.cc File chrome/browser/ui/fast_unload_controller.cc ...
5 years, 7 months ago (2015-04-29 17:09:27 UTC) #7
Devlin
extensions lgtm
5 years, 7 months ago (2015-04-29 17:15:46 UTC) #8
dgozman
https://codereview.chromium.org/1094153002/diff/1/content/browser/devtools/render_frame_devtools_agent_host.cc File content/browser/devtools/render_frame_devtools_agent_host.cc (right): https://codereview.chromium.org/1094153002/diff/1/content/browser/devtools/render_frame_devtools_agent_host.cc#newcode477 content/browser/devtools/render_frame_devtools_agent_host.cc:477: WebContentsImpl::FromRenderFrameHost(render_frame_host_)->ClosePage(); On 2015/04/29 17:09:27, nasko wrote: > On 2015/04/21 ...
5 years, 7 months ago (2015-04-29 17:23:42 UTC) #9
nasko
On 2015/04/29 17:23:42, dgozman wrote: > https://codereview.chromium.org/1094153002/diff/1/content/browser/devtools/render_frame_devtools_agent_host.cc > File content/browser/devtools/render_frame_devtools_agent_host.cc (right): > > https://codereview.chromium.org/1094153002/diff/1/content/browser/devtools/render_frame_devtools_agent_host.cc#newcode477 > ...
5 years, 7 months ago (2015-04-29 17:24:32 UTC) #10
Charlie Reis
Thanks. LGTM with nits. https://codereview.chromium.org/1094153002/diff/40001/content/browser/renderer_host/render_view_host_impl.h File content/browser/renderer_host/render_view_host_impl.h (right): https://codereview.chromium.org/1094153002/diff/40001/content/browser/renderer_host/render_view_host_impl.h#newcode229 content/browser/renderer_host/render_view_host_impl.h:229: // Tells the renderer process ...
5 years, 7 months ago (2015-04-29 17:31:18 UTC) #11
Lei Zhang
You still have a bot that's failing to compile.
5 years, 7 months ago (2015-04-29 20:04:26 UTC) #12
Lei Zhang
chrome/ lgtm
5 years, 7 months ago (2015-04-29 20:04:42 UTC) #13
nasko
Lei: the cast bot was a new one, so it didn't fail before. It is ...
5 years, 7 months ago (2015-04-29 21:15:33 UTC) #15
nasko
lcwu@, can you do OWNERS review in chromecast/?
5 years, 7 months ago (2015-04-29 21:17:43 UTC) #17
lcwu1
chromecast/ lgtm.
5 years, 7 months ago (2015-04-29 21:45:53 UTC) #18
gunsch
for chromecast/, cast_window_android.cc also has a call to ClosePage that needs to be updated (though ...
5 years, 7 months ago (2015-04-29 21:51:06 UTC) #20
Charlie Reis
https://codereview.chromium.org/1094153002/diff/40001/extensions/browser/process_manager.cc File extensions/browser/process_manager.cc (right): https://codereview.chromium.org/1094153002/diff/40001/extensions/browser/process_manager.cc#newcode808 extensions/browser/process_manager.cc:808: content::WebContents::FromRenderFrameHost(frame)->ClosePage(); On 2015/04/29 21:15:33, nasko wrote: > On 2015/04/29 ...
5 years, 7 months ago (2015-04-29 22:21:48 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1094153002/100001
5 years, 7 months ago (2015-04-30 15:49:10 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:100001)
5 years, 7 months ago (2015-04-30 15:54:02 UTC) #25
commit-bot: I haz the power
5 years, 7 months ago (2015-04-30 15:55:37 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c0fceff6214f05360be23a5fc2ee578e9d7707aa
Cr-Commit-Position: refs/heads/master@{#327719}

Powered by Google App Engine
This is Rietveld 408576698