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

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

Issue 2371113003: Do not give instant focus if a view's toplevelwidget is not active (Closed)
Patch Set: new patch Created 4 years, 3 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 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_);

Powered by Google App Engine
This is Rietveld 408576698