summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webkit/glue/webthread_impl.cc2
-rw-r--r--webkit/tools/test_shell/layout_test_controller.cc2
-rw-r--r--webkit/tools/test_shell/webwidget_host.cc4
3 files changed, 4 insertions, 4 deletions
diff --git a/webkit/glue/webthread_impl.cc b/webkit/glue/webthread_impl.cc
index 5648be0..4725fa1 100644
--- a/webkit/glue/webthread_impl.cc
+++ b/webkit/glue/webthread_impl.cc
@@ -105,7 +105,7 @@ void WebThreadImplForMessageLoop::postDelayedTask(
message_loop_->PostDelayedTask(
FROM_HERE,
base::Bind(&WebKit::WebThread::Task::run, base::Owned(task)),
- delay_ms);
+ base::TimeDelta::FromMilliseconds(delay_ms));
}
void WebThreadImplForMessageLoop::enterRunLoop() {
diff --git a/webkit/tools/test_shell/layout_test_controller.cc b/webkit/tools/test_shell/layout_test_controller.cc
index 201c3c7..aadbd39 100644
--- a/webkit/tools/test_shell/layout_test_controller.cc
+++ b/webkit/tools/test_shell/layout_test_controller.cc
@@ -160,7 +160,7 @@ void LayoutTestController::waitUntilDone(
FROM_HERE,
base::Bind(&LayoutTestController::notifyDoneTimedOut,
weak_factory_.GetWeakPtr()),
- shell_->GetLayoutTestTimeout());
+ base::TimeDelta::FromMilliseconds(shell_->GetLayoutTestTimeout()));
}
wait_until_done_ = true;
diff --git a/webkit/tools/test_shell/webwidget_host.cc b/webkit/tools/test_shell/webwidget_host.cc
index 32b399b..1e6f96a 100644
--- a/webkit/tools/test_shell/webwidget_host.cc
+++ b/webkit/tools/test_shell/webwidget_host.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -11,5 +11,5 @@ void WebWidgetHost::ScheduleAnimation() {
MessageLoop::current()->PostDelayedTask(
FROM_HERE,
base::Bind(&WebWidgetHost::ScheduleComposite, weak_factory_.GetWeakPtr()),
- 10);
+ base::TimeDelta::FromMilliseconds(10));
}