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

Unified Diff: content/public/test/content_browser_test_utils.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/public/test/content_browser_test_utils.cc
diff --git a/content/public/test/content_browser_test_utils.cc b/content/public/test/content_browser_test_utils.cc
index 6be71c424d0fda55353a21460e99f72ef0469866..b77a2724d31722b87715645e4307b8cb69094134 100644
--- a/content/public/test/content_browser_test_utils.cc
+++ b/content/public/test/content_browser_test_utils.cc
@@ -104,6 +104,10 @@ void WaitForAppModalDialog(Shell* window) {
runner->Run();
}
+RenderFrameHost* ConvertToRenderFrameHost(Shell* shell) {
+ return shell->web_contents()->GetMainFrame();
+}
+
ShellAddedObserver::ShellAddedObserver()
: shell_(NULL) {
Shell::SetShellCreatedCallback(
« no previous file with comments | « content/public/test/content_browser_test_utils.h ('k') | content/test/content_browser_test_utils_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698