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

Unified Diff: content/browser/top_document_isolation_browsertest.cc

Issue 2478583005: Browser tests for starting a drag-and-drop out of an OOPIF. (Closed)
Patch Set: Rebasing... Created 4 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/top_document_isolation_browsertest.cc
diff --git a/content/browser/top_document_isolation_browsertest.cc b/content/browser/top_document_isolation_browsertest.cc
index 63dbac1336d75fcbf5c1ec03d51a384f1fe1a860..d061d5f6dca0d78ac3c1b45ef5960c9bb03ec6d6 100644
--- a/content/browser/top_document_isolation_browsertest.cc
+++ b/content/browser/top_document_isolation_browsertest.cc
@@ -11,10 +11,10 @@
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_utils.h"
+#include "content/public/test/test_frame_navigation_observer.h"
#include "content/public/test/test_navigation_observer.h"
#include "content/shell/browser/shell.h"
#include "content/test/content_browser_test_utils_internal.h"
-#include "content/test/test_frame_navigation_observer.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "url/gurl.h"
@@ -59,7 +59,7 @@ class TopDocumentIsolationTest : public ContentBrowserTest {
}
void RendererInitiatedNavigateToURL(FrameTreeNode* node, const GURL& url) {
- TestFrameNavigationObserver nav_observer(node);
+ TestFrameNavigationObserver nav_observer(node->current_frame_host());
ASSERT_TRUE(
ExecuteScript(node, "window.location.href='" + url.spec() + "'"));
nav_observer.Wait();

Powered by Google App Engine
This is Rietveld 408576698