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

Unified Diff: chrome/browser/geolocation/geolocation_browsertest.cc

Issue 24733003: Update defaults for InstantExtended. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 2 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/browser/geolocation/geolocation_browsertest.cc
diff --git a/chrome/browser/geolocation/geolocation_browsertest.cc b/chrome/browser/geolocation/geolocation_browsertest.cc
index a1bec46ca9e03580173d9f787406cc5a78039d9f..f522e70091020157eba68eb821ab614e28f88538 100644
--- a/chrome/browser/geolocation/geolocation_browsertest.cc
+++ b/chrome/browser/geolocation/geolocation_browsertest.cc
@@ -348,9 +348,14 @@ bool GeolocationBrowserTest::Initialize(InitializationOptions options) {
browser()->profile(), current_url_);
} else {
current_browser_ = browser();
- if (options == INITIALIZATION_NEWTAB)
- chrome::NewTab(current_browser_);
- ui_test_utils::NavigateToURL(current_browser_, current_url_);
+ if (options == INITIALIZATION_NEWTAB) {
+ ui_test_utils::NavigateToURLWithDisposition(
+ current_browser_, current_url_, NEW_FOREGROUND_TAB,
+ ui_test_utils::BROWSER_TEST_WAIT_FOR_TAB |
+ ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION);
+ } else {
+ ui_test_utils::NavigateToURL(current_browser_, current_url_);
+ }
}
LOG(WARNING) << "after navigate";

Powered by Google App Engine
This is Rietveld 408576698