| 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";
|
|
|
|
|