Index: chrome/browser/browser_focus_uitest.cc |
=================================================================== |
--- chrome/browser/browser_focus_uitest.cc (revision 124890) |
+++ chrome/browser/browser_focus_uitest.cc (working copy) |
@@ -145,7 +145,7 @@ |
MessageLoop::current()->PostDelayedTask( |
FROM_HERE, |
base::Bind(&CheckFocus, browser, id, timeout), |
- base::TimeDelta::FromMilliseconds(10)); |
+ 10); |
} |
}; |
@@ -176,7 +176,7 @@ |
MessageLoop::current()->PostDelayedTask( |
FROM_HERE, |
base::Bind(&CheckFocus, browser(), vid, timeout), |
- base::TimeDelta::FromMilliseconds(100)); |
+ 100); |
ui_test_utils::RunMessageLoop(); |
return IsViewFocused(vid); |
} |
@@ -225,10 +225,9 @@ |
#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( |
- FROM_HERE, |
- MessageLoop::QuitClosure(), |
- base::TimeDelta::FromMilliseconds(kActionDelayMs)); |
+ MessageLoop::current()->PostDelayedTask(FROM_HERE, |
+ MessageLoop::QuitClosure(), |
+ kActionDelayMs); |
ui_test_utils::RunMessageLoop(); |
#endif // defined(OS_POSIX) |
@@ -628,7 +627,7 @@ |
// Give some time for the interstitial to show. |
MessageLoop::current()->PostDelayedTask(FROM_HERE, |
MessageLoop::QuitClosure(), |
- base::TimeDelta::FromSeconds(1)); |
+ 1000); |
ui_test_utils::RunMessageLoop(); |
browser()->FocusLocationBar(); |
@@ -753,7 +752,7 @@ |
// Give some time for the interstitial to show. |
MessageLoop::current()->PostDelayedTask(FROM_HERE, |
MessageLoop::QuitClosure(), |
- base::TimeDelta::FromSeconds(1)); |
+ 1000); |
ui_test_utils::RunMessageLoop(); |
// The interstitial should have focus now. |