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

Unified Diff: content/browser/web_contents/opened_by_dom_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/web_contents/opened_by_dom_browsertest.cc
diff --git a/content/browser/web_contents/opened_by_dom_browsertest.cc b/content/browser/web_contents/opened_by_dom_browsertest.cc
index 44a184c20390e0147b41be2368e2e9cd19cd343f..699121da96fa3502a995b1a1f583153db0fdf2ab 100644
--- a/content/browser/web_contents/opened_by_dom_browsertest.cc
+++ b/content/browser/web_contents/opened_by_dom_browsertest.cc
@@ -73,8 +73,7 @@ class OpenedByDOMTest : public ContentBrowserTest {
TestNavigationObserver nav_observer(NULL);
nav_observer.StartWatchingNewWebContents();
CHECK(ExecuteScript(
- shell->web_contents(),
- base::StringPrintf("window.open('%s')", url.spec().c_str())));
+ shell, base::StringPrintf("window.open('%s')", url.spec().c_str())));
nav_observer.Wait();
return new_shell_observer.GetShell();
}

Powered by Google App Engine
This is Rietveld 408576698