Index: chrome/common/worker_thread_ticker_unittest.cc |
diff --git a/chrome/common/worker_thread_ticker_unittest.cc b/chrome/common/worker_thread_ticker_unittest.cc |
index b999c3372a711e73201beab4731465acfeec97b0..9099a623d1d2a1730479567a52e73c85367dcaaf 100644 |
--- a/chrome/common/worker_thread_ticker_unittest.cc |
+++ b/chrome/common/worker_thread_ticker_unittest.cc |
@@ -32,13 +32,15 @@ class TestCallback : public WorkerThreadTicker::Callback { |
class LongCallback : public WorkerThreadTicker::Callback { |
public: |
virtual void OnTick() { |
- base::PlatformThread::Sleep(1500); |
+ base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(1500)); |
} |
}; |
void RunMessageLoopForAWhile() { |
- MessageLoop::current()->PostDelayedTask(FROM_HERE, |
- MessageLoop::QuitClosure(), 500); |
+ MessageLoop::current()->PostDelayedTask( |
+ FROM_HERE, |
+ MessageLoop::QuitClosure(), |
+ base::TimeDelta::FromMilliseconds(500)); |
MessageLoop::current()->Run(); |
} |