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

Unified Diff: content/browser/frame_host/render_frame_host_manager_browsertest.cc

Issue 1454883006: Revert of Reland #1 of: Move WebUI ownership from the RenderFrameHostManager to the RenderFrameHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/frame_host/render_frame_host_manager_browsertest.cc
diff --git a/content/browser/frame_host/render_frame_host_manager_browsertest.cc b/content/browser/frame_host/render_frame_host_manager_browsertest.cc
index 3f5d902387db818d8f510300031e8f04f31ed9bf..e558f3898d973d35ed24de6a098316eedfe945ed 100644
--- a/content/browser/frame_host/render_frame_host_manager_browsertest.cc
+++ b/content/browser/frame_host/render_frame_host_manager_browsertest.cc
@@ -1690,19 +1690,16 @@
shell()->web_contents()->GetRenderProcessHost()->GetID()));
WebContentsImpl* web_contents = static_cast<WebContentsImpl*>(
shell()->web_contents());
- FrameTreeNode* root = web_contents->GetFrameTree()->root();
- WebUIImpl* webui = root->current_frame_host()->web_ui();
+ WebUIImpl* webui = web_contents->GetRenderManagerForTesting()->web_ui();
EXPECT_TRUE(webui);
- EXPECT_FALSE(
- web_contents->GetRenderManagerForTesting()->GetNavigatingWebUI());
-
- // Navigate to another WebUI URL that reuses the WebUI object. Make sure we
- // clear GetNavigatingWebUI() when it commits.
+ EXPECT_FALSE(web_contents->GetRenderManagerForTesting()->pending_web_ui());
+
+ // Navigate to another WebUI URL that reuses the WebUI object. Make sure we
+ // clear pending_web_ui() when it commits.
GURL webui_url2(webui_url.spec() + "#foo");
NavigateToURL(shell(), webui_url2);
- EXPECT_EQ(webui, root->current_frame_host()->web_ui());
- EXPECT_FALSE(
- web_contents->GetRenderManagerForTesting()->GetNavigatingWebUI());
+ EXPECT_EQ(webui, web_contents->GetRenderManagerForTesting()->web_ui());
+ EXPECT_FALSE(web_contents->GetRenderManagerForTesting()->pending_web_ui());
}
class RFHMProcessPerTabTest : public RenderFrameHostManagerTest {

Powered by Google App Engine
This is Rietveld 408576698