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

Unified Diff: content/browser/top_document_isolation_browsertest.cc

Issue 2052633002: Extend the ToRenderFrameHost magic to FrameTreeNode* and Shell* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix induced script bug. Created 4 years, 6 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/top_document_isolation_browsertest.cc
diff --git a/content/browser/top_document_isolation_browsertest.cc b/content/browser/top_document_isolation_browsertest.cc
index 72d87060f4cfb686561dab8c9dcc57a6f3c68db5..bca52ee136668dde5490ca319ac181a6667af153 100644
--- a/content/browser/top_document_isolation_browsertest.cc
+++ b/content/browser/top_document_isolation_browsertest.cc
@@ -55,13 +55,13 @@ class TopDocumentIsolationTest : public ContentBrowserTest {
Shell* OpenPopup(FrameTreeNode* opener, const std::string& url) {
GURL gurl =
opener->current_frame_host()->GetLastCommittedURL().Resolve(url);
- return content::OpenPopup(opener->current_frame_host(), gurl, "_blank");
+ return content::OpenPopup(opener, gurl, "_blank");
}
void RendererInitiatedNavigateToURL(FrameTreeNode* node, const GURL& url) {
TestFrameNavigationObserver nav_observer(node);
- ASSERT_TRUE(ExecuteScript(node->current_frame_host(),
- "window.location.href='" + url.spec() + "'"));
+ ASSERT_TRUE(
+ ExecuteScript(node, "window.location.href='" + url.spec() + "'"));
nav_observer.Wait();
}

Powered by Google App Engine
This is Rietveld 408576698