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 9825fdada688291d1af24e9a70093b6a5bc31885..1f22006eb7afeac7d18035e064a1306df8d6a902 100644 |
--- a/chrome/browser/ui/browser_focus_uitest.cc |
+++ b/chrome/browser/ui/browser_focus_uitest.cc |
@@ -140,9 +140,10 @@ bool ChromeInForeground() { |
void CheckFocus(Browser* browser, ViewID id, const base::Time& timeout) { |
if (ui_test_utils::IsViewFocused(browser, id) || |
base::Time::Now() > timeout) { |
- MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure()); |
+ base::MessageLoop::current()->PostTask(FROM_HERE, |
+ base::MessageLoop::QuitClosure()); |
} else { |
- MessageLoop::current()->PostDelayedTask( |
+ base::MessageLoop::current()->PostDelayedTask( |
FROM_HERE, |
base::Bind(&CheckFocus, browser, id, timeout), |
base::TimeDelta::FromMilliseconds(10)); |
@@ -162,7 +163,7 @@ class BrowserFocusTest : public InProcessBrowserTest { |
bool WaitForFocusChange(ViewID vid) { |
const base::Time timeout = base::Time::Now() + |
base::TimeDelta::FromMilliseconds(kFocusChangeTimeoutMs); |
- MessageLoop::current()->PostDelayedTask( |
+ base::MessageLoop::current()->PostDelayedTask( |
FROM_HERE, |
base::Bind(&CheckFocus, browser(), vid, timeout), |
base::TimeDelta::FromMilliseconds(100)); |
@@ -218,9 +219,9 @@ IN_PROC_BROWSER_TEST_F(BrowserFocusTest, MAYBE_ClickingMovesFocus) { |
#if defined(OS_POSIX) |
// It seems we have to wait a little bit for the widgets to spin up before |
// we can start clicking on them. |
- MessageLoop::current()->PostDelayedTask( |
+ base::MessageLoop::current()->PostDelayedTask( |
FROM_HERE, |
- MessageLoop::QuitClosure(), |
+ base::MessageLoop::QuitClosure(), |
base::TimeDelta::FromMilliseconds(kActionDelayMs)); |
content::RunMessageLoop(); |
#endif // defined(OS_POSIX) |
@@ -625,9 +626,10 @@ IN_PROC_BROWSER_TEST_F(BrowserFocusTest, MAYBE_FocusTraversalOnInterstitial) { |
browser()->tab_strip_model()->GetActiveWebContents(), |
true, GURL("http://interstitial.com")); |
// Give some time for the interstitial to show. |
- MessageLoop::current()->PostDelayedTask(FROM_HERE, |
- MessageLoop::QuitClosure(), |
- base::TimeDelta::FromSeconds(1)); |
+ base::MessageLoop::current()->PostDelayedTask( |
+ FROM_HERE, |
+ base::MessageLoop::QuitClosure(), |
+ base::TimeDelta::FromSeconds(1)); |
content::RunMessageLoop(); |
chrome::FocusLocationBar(browser()); |
@@ -746,9 +748,10 @@ IN_PROC_BROWSER_TEST_F(BrowserFocusTest, DISABLED_InterstitialFocus) { |
browser()->tab_strip_model()->GetActiveWebContents(), |
true, GURL("http://interstitial.com")); |
// Give some time for the interstitial to show. |
- MessageLoop::current()->PostDelayedTask(FROM_HERE, |
- MessageLoop::QuitClosure(), |
- base::TimeDelta::FromSeconds(1)); |
+ base::MessageLoop::current()->PostDelayedTask( |
+ FROM_HERE, |
+ base::MessageLoop::QuitClosure(), |
+ base::TimeDelta::FromSeconds(1)); |
content::RunMessageLoop(); |
// The interstitial should have focus now. |