Index: chrome/browser/geolocation/geolocation_browsertest.cc |
diff --git a/chrome/browser/geolocation/geolocation_browsertest.cc b/chrome/browser/geolocation/geolocation_browsertest.cc |
index a603a90451498a74f380d671e86173db521c5b0f..5929c126dea00c56ceb53e4c98f8ab161a52e999 100644 |
--- a/chrome/browser/geolocation/geolocation_browsertest.cc |
+++ b/chrome/browser/geolocation/geolocation_browsertest.cc |
@@ -23,6 +23,7 @@ |
#include "chrome/browser/ui/browser_commands.h" |
#include "chrome/browser/ui/tabs/tab_strip_model.h" |
#include "chrome/test/base/in_process_browser_test.h" |
+#include "chrome/test/base/interactive_test_utils.h" |
#include "chrome/test/base/ui_test_utils.h" |
#include "components/content_settings/core/browser/content_settings_usages_state.h" |
#include "components/content_settings/core/browser/host_content_settings_map.h" |
@@ -314,6 +315,7 @@ void GeolocationBrowserTest::Initialize(InitializationOptions options) { |
chrome::NewTab(current_browser_); |
} |
ASSERT_TRUE(current_browser_); |
+ ASSERT_TRUE(ui_test_utils::BringBrowserWindowToFront(current_browser_)); |
if (options != INITIALIZATION_OFFTHERECORD) |
ui_test_utils::NavigateToURL(current_browser_, current_url_); |