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

Unified Diff: chrome/test/base/ui_test_utils.cc

Issue 9416031: Prerendered pages are swapped in at browser::Navigate time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More cleanup Created 8 years, 10 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: chrome/test/base/ui_test_utils.cc
diff --git a/chrome/test/base/ui_test_utils.cc b/chrome/test/base/ui_test_utils.cc
index dc6876460af634751ca0e9fd55d8414fefa877c4..a594c1e244540ed91d3e7c1918e0b7a831189838 100644
--- a/chrome/test/base/ui_test_utils.cc
+++ b/chrome/test/base/ui_test_utils.cc
@@ -424,7 +424,7 @@ static void NavigateToURLWithDispositionBlockUntilNavigationsComplete(
content::NOTIFICATION_TAB_ADDED,
content::NotificationService::AllSources());
- browser->OpenURL(OpenURLParams(
+ browser->OpenURLFromTab(browser->GetSelectedWebContents(), OpenURLParams(
url, Referrer(), disposition, content::PAGE_TRANSITION_TYPED, false));
if (browser_test_flags & BROWSER_TEST_WAIT_FOR_BROWSER)
browser = WaitForBrowserNotInSet(initial_browsers);

Powered by Google App Engine
This is Rietveld 408576698