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

Unified Diff: content/browser/web_contents/web_contents_impl_browsertest.cc

Issue 23841002: Create a new RenderFrameHost per child frame when --site-per-process is enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unittests. Created 7 years, 3 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
Index: content/browser/web_contents/web_contents_impl_browsertest.cc
diff --git a/content/browser/web_contents/web_contents_impl_browsertest.cc b/content/browser/web_contents/web_contents_impl_browsertest.cc
index 792b4eef5fba4f352d6bb814f16ede92f148fd31..b924b554c9a73e34c1f9e2abd015e7957685105d 100644
--- a/content/browser/web_contents/web_contents_impl_browsertest.cc
+++ b/content/browser/web_contents/web_contents_impl_browsertest.cc
@@ -240,7 +240,7 @@ IN_PROC_BROWSER_TEST_F(WebContentsImplBrowserTest, FrameTree) {
WebContentsImpl* wc = static_cast<WebContentsImpl*>(shell()->web_contents());
RenderViewHostImpl* rvh = static_cast<RenderViewHostImpl*>(
wc->GetRenderViewHost());
- FrameTreeNode* root = wc->GetFrameTreeRootForTesting();
+ FrameTreeNode* root = wc->GetFrameTree()->GetRootForTesting();
// Check that the root node is properly created with the frame id of the
// initial navigation.
@@ -262,7 +262,7 @@ IN_PROC_BROWSER_TEST_F(WebContentsImplBrowserTest, FrameTree) {
// tree in the browser process.
NavigateToURL(shell(), embedded_test_server()->GetURL("/title1.html"));
- root = wc->GetFrameTreeRootForTesting();
+ root = wc->GetFrameTree()->GetRootForTesting();
EXPECT_EQ(0UL, root->child_count());
EXPECT_EQ(std::string(), root->frame_name());
EXPECT_EQ(rvh->main_frame_id(), root->frame_id());

Powered by Google App Engine
This is Rietveld 408576698