| Index: chrome/browser/ui/browser_focus_uitest.cc
|
| diff --git a/chrome/browser/ui/browser_focus_uitest.cc b/chrome/browser/ui/browser_focus_uitest.cc
|
| index 9ce91d1286160e25c1c52a4295d6d9931440752b..d1059a9701f2b46f68cad700345aa5f41b6a72b5 100644
|
| --- a/chrome/browser/ui/browser_focus_uitest.cc
|
| +++ b/chrome/browser/ui/browser_focus_uitest.cc
|
| @@ -331,9 +331,7 @@ IN_PROC_BROWSER_TEST_F(BrowserFocusTest, DISABLED_TabsRememberFocus) {
|
|
|
| // Tabs remember focus with find-in-page box.
|
| IN_PROC_BROWSER_TEST_F(BrowserFocusTest, TabsRememberFocusFindInPage) {
|
| - ASSERT_TRUE(ui_test_utils::BringBrowserWindowToFront(browser()));
|
| - ui_test_utils::BrowserActivationWaiter waiter(browser());
|
| - waiter.WaitForActivation();
|
| + ASSERT_TRUE(ui_test_utils::ActivateBrowserWindow(browser()));
|
| const GURL url = embedded_test_server()->GetURL(kSimplePage);
|
| ui_test_utils::NavigateToURL(browser(), url);
|
|
|
| @@ -419,9 +417,7 @@ IN_PROC_BROWSER_TEST_F(BrowserFocusTest,
|
|
|
| // Page cannot steal focus when focus is on location bar.
|
| IN_PROC_BROWSER_TEST_F(BrowserFocusTest, LocationBarLockFocus) {
|
| - ASSERT_TRUE(ui_test_utils::BringBrowserWindowToFront(browser()));
|
| - ui_test_utils::BrowserActivationWaiter waiter(browser());
|
| - waiter.WaitForActivation();
|
| + ASSERT_TRUE(ui_test_utils::ActivateBrowserWindow(browser()));
|
|
|
| // Open the page that steals focus.
|
| const GURL url = embedded_test_server()->GetURL(kStealFocusPage);
|
| @@ -562,9 +558,7 @@ IN_PROC_BROWSER_TEST_F(BrowserFocusTest, DISABLED_TabInitialFocus) {
|
|
|
| // Tests that focus goes where expected when using reload.
|
| IN_PROC_BROWSER_TEST_F(BrowserFocusTest, FocusOnReload) {
|
| - ASSERT_TRUE(ui_test_utils::BringBrowserWindowToFront(browser()));
|
| - ui_test_utils::BrowserActivationWaiter waiter(browser());
|
| - waiter.WaitForActivation();
|
| + ASSERT_TRUE(ui_test_utils::ActivateBrowserWindow(browser()));
|
|
|
| // Open the new tab, reload.
|
| {
|
| @@ -685,9 +679,7 @@ IN_PROC_BROWSER_TEST_F(BrowserFocusTest, NavigateFromOmniboxIntoNewTab) {
|
| #define MAYBE_FocusOnNavigate FocusOnNavigate
|
| #endif
|
| IN_PROC_BROWSER_TEST_F(BrowserFocusTest, MAYBE_FocusOnNavigate) {
|
| - ASSERT_TRUE(ui_test_utils::BringBrowserWindowToFront(browser()));
|
| - ui_test_utils::BrowserActivationWaiter waiter(browser());
|
| - waiter.WaitForActivation();
|
| + ASSERT_TRUE(ui_test_utils::ActivateBrowserWindow(browser()));
|
|
|
| // Load the NTP.
|
| ui_test_utils::NavigateToURL(browser(), GURL(chrome::kChromeUINewTabURL));
|
|
|