Index: chrome/browser/ui/search/instant_extended_interactive_uitest.cc |
diff --git a/chrome/browser/ui/search/instant_extended_interactive_uitest.cc b/chrome/browser/ui/search/instant_extended_interactive_uitest.cc |
index fbf196d04d95ebe34502a7887ffcfdd42623c4d7..2e70e92ea205a6cb92b52b2f0cc25660125de86d 100644 |
--- a/chrome/browser/ui/search/instant_extended_interactive_uitest.cc |
+++ b/chrome/browser/ui/search/instant_extended_interactive_uitest.cc |
@@ -395,11 +395,10 @@ IN_PROC_BROWSER_TEST_F(InstantExtendedTest, NoMostVisitedChangedOnTabSwitch) { |
// Open new tab. |
ui_test_utils::NavigateToURLWithDisposition( |
- browser(), |
- GURL(chrome::kChromeUINewTabURL), |
- NEW_FOREGROUND_TAB, |
+ browser(), GURL(chrome::kChromeUINewTabURL), |
+ WindowOpenDisposition::NEW_FOREGROUND_TAB, |
ui_test_utils::BROWSER_TEST_WAIT_FOR_TAB | |
- ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION); |
+ ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION); |
EXPECT_EQ(2, browser()->tab_strip_model()->count()); |
// Make sure new tab received the onmostvisitedchanged event once. |
@@ -428,11 +427,10 @@ IN_PROC_BROWSER_TEST_F(InstantPolicyTest, ThemeBackgroundAccess) { |
// The "Instant" New Tab should have access to chrome-search: scheme but not |
// chrome: scheme. |
ui_test_utils::NavigateToURLWithDisposition( |
- browser(), |
- GURL(chrome::kChromeUINewTabURL), |
- NEW_FOREGROUND_TAB, |
+ browser(), GURL(chrome::kChromeUINewTabURL), |
+ WindowOpenDisposition::NEW_FOREGROUND_TAB, |
ui_test_utils::BROWSER_TEST_WAIT_FOR_TAB | |
- ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION); |
+ ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION); |
content::RenderViewHost* rvh = |
browser()->tab_strip_model()->GetActiveWebContents()->GetRenderViewHost(); |
@@ -459,11 +457,10 @@ IN_PROC_BROWSER_TEST_F(InstantPolicyTest, |
// Open new tab. |
ui_test_utils::NavigateToURLWithDisposition( |
- browser(), |
- GURL(chrome::kChromeUINewTabURL), |
- NEW_FOREGROUND_TAB, |
+ browser(), GURL(chrome::kChromeUINewTabURL), |
+ WindowOpenDisposition::NEW_FOREGROUND_TAB, |
ui_test_utils::BROWSER_TEST_WAIT_FOR_TAB | |
- ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION); |
+ ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION); |
EXPECT_EQ(2, browser()->tab_strip_model()->count()); |
content::WebContents* active_tab = |
@@ -501,11 +498,10 @@ IN_PROC_BROWSER_TEST_F(InstantPolicyTest, |
// Open new tab. |
ui_test_utils::NavigateToURLWithDisposition( |
- browser(), |
- GURL(chrome::kChromeUINewTabURL), |
- NEW_FOREGROUND_TAB, |
+ browser(), GURL(chrome::kChromeUINewTabURL), |
+ WindowOpenDisposition::NEW_FOREGROUND_TAB, |
ui_test_utils::BROWSER_TEST_WAIT_FOR_TAB | |
- ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION); |
+ ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION); |
EXPECT_EQ(2, browser()->tab_strip_model()->count()); |
// Make sure new tab received an onthemechanged event. |
@@ -534,11 +530,10 @@ IN_PROC_BROWSER_TEST_F(InstantExtendedTest, DISABLED_NavigateBackToNTP) { |
// Open a new tab page. |
ui_test_utils::NavigateToURLWithDisposition( |
- browser(), |
- GURL(chrome::kChromeUINewTabURL), |
- NEW_FOREGROUND_TAB, |
+ browser(), GURL(chrome::kChromeUINewTabURL), |
+ WindowOpenDisposition::NEW_FOREGROUND_TAB, |
ui_test_utils::BROWSER_TEST_WAIT_FOR_TAB | |
- ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION); |
+ ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION); |
EXPECT_EQ(2, browser()->tab_strip_model()->count()); |
SetOmniboxText("flowers"); |
@@ -568,11 +563,10 @@ IN_PROC_BROWSER_TEST_F(InstantExtendedTest, |
// Open new tab. |
ui_test_utils::NavigateToURLWithDisposition( |
- browser(), |
- GURL(chrome::kChromeUINewTabURL), |
- NEW_FOREGROUND_TAB, |
+ browser(), GURL(chrome::kChromeUINewTabURL), |
+ WindowOpenDisposition::NEW_FOREGROUND_TAB, |
ui_test_utils::BROWSER_TEST_WAIT_FOR_TAB | |
- ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION); |
+ ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION); |
content::WebContents* active_tab = |
browser()->tab_strip_model()->GetActiveWebContents(); |
@@ -619,10 +613,8 @@ IN_PROC_BROWSER_TEST_F(InstantExtendedPrefetchTest, DISABLED_SetPrefetchQuery) { |
content::NOTIFICATION_NAV_ENTRY_COMMITTED, |
content::NotificationService::AllSources()); |
ui_test_utils::NavigateToURLWithDisposition( |
- browser(), |
- GURL(chrome::kChromeUINewTabURL), |
- CURRENT_TAB, |
- ui_test_utils::BROWSER_TEST_NONE); |
+ browser(), GURL(chrome::kChromeUINewTabURL), |
+ WindowOpenDisposition::CURRENT_TAB, ui_test_utils::BROWSER_TEST_NONE); |
new_tab_observer.Wait(); |
OmniboxFieldTrial::kDefaultMinimumTimeBetweenSuggestQueriesMs = 0; |
@@ -685,10 +677,8 @@ IN_PROC_BROWSER_TEST_F(InstantExtendedPrefetchTest, |
content::NOTIFICATION_NAV_ENTRY_COMMITTED, |
content::NotificationService::AllSources()); |
ui_test_utils::NavigateToURLWithDisposition( |
- browser(), |
- GURL(chrome::kChromeUINewTabURL), |
- CURRENT_TAB, |
- ui_test_utils::BROWSER_TEST_NONE); |
+ browser(), GURL(chrome::kChromeUINewTabURL), |
+ WindowOpenDisposition::CURRENT_TAB, ui_test_utils::BROWSER_TEST_NONE); |
new_tab_observer.Wait(); |
OmniboxFieldTrial::kDefaultMinimumTimeBetweenSuggestQueriesMs = 0; |