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

Unified Diff: content/public/test/test_renderer_host.cc

Issue 462083003: Revert of [site isolation] cross-site transfers should track the RenderFrameHost, not the View (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/test/test_renderer_host.h ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_renderer_host.cc
diff --git a/content/public/test/test_renderer_host.cc b/content/public/test/test_renderer_host.cc
index c9136b766f8648c62bf2fe0d7134df05acc1dfe7..70d7e6694a22c52766c259d7e23480e3a1070cdf 100644
--- a/content/public/test/test_renderer_host.cc
+++ b/content/public/test/test_renderer_host.cc
@@ -112,19 +112,9 @@
}
RenderFrameHost* RenderViewHostTestHarness::main_rfh() {
- WebContentsImpl* web_contents =
- static_cast<WebContentsImpl*>(this->web_contents());
- RenderFrameHostManager* main_frame_render_manager =
- web_contents->GetFrameTree()->root()->render_manager();
- return main_frame_render_manager->current_frame_host();
-}
-
-RenderFrameHost* RenderViewHostTestHarness::pending_main_rfh() {
- WebContentsImpl* web_contents =
- static_cast<WebContentsImpl*>(this->web_contents());
- RenderFrameHostManager* main_frame_render_manager =
- web_contents->GetFrameTree()->root()->render_manager();
- return main_frame_render_manager->pending_frame_host();
+ WebContentsImpl* web_contents = static_cast<WebContentsImpl*>(
+ this->web_contents());
+ return web_contents->GetFrameTree()->GetMainFrame();
}
BrowserContext* RenderViewHostTestHarness::browser_context() {
« no previous file with comments | « content/public/test/test_renderer_host.h ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698