Commit bd2fb568 authored by tedvessenes@gmail.com's avatar tedvessenes@gmail.com

Convert uses of int ms to TimeDelta in webkit/glue and webkit/tools.


R=darin@chromium.org
BUG=108171


Review URL: http://codereview.chromium.org/9582043

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124922 0039d316-1c4b-4281-b951-d872f2087c98
parent 916dfb69
...@@ -105,7 +105,7 @@ void WebThreadImplForMessageLoop::postDelayedTask( ...@@ -105,7 +105,7 @@ void WebThreadImplForMessageLoop::postDelayedTask(
message_loop_->PostDelayedTask( message_loop_->PostDelayedTask(
FROM_HERE, FROM_HERE,
base::Bind(&WebKit::WebThread::Task::run, base::Owned(task)), base::Bind(&WebKit::WebThread::Task::run, base::Owned(task)),
delay_ms); base::TimeDelta::FromMilliseconds(delay_ms));
} }
void WebThreadImplForMessageLoop::enterRunLoop() { void WebThreadImplForMessageLoop::enterRunLoop() {
......
...@@ -160,7 +160,7 @@ void LayoutTestController::waitUntilDone( ...@@ -160,7 +160,7 @@ void LayoutTestController::waitUntilDone(
FROM_HERE, FROM_HERE,
base::Bind(&LayoutTestController::notifyDoneTimedOut, base::Bind(&LayoutTestController::notifyDoneTimedOut,
weak_factory_.GetWeakPtr()), weak_factory_.GetWeakPtr()),
shell_->GetLayoutTestTimeout()); base::TimeDelta::FromMilliseconds(shell_->GetLayoutTestTimeout()));
} }
wait_until_done_ = true; wait_until_done_ = true;
......
// 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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
...@@ -11,5 +11,5 @@ void WebWidgetHost::ScheduleAnimation() { ...@@ -11,5 +11,5 @@ void WebWidgetHost::ScheduleAnimation() {
MessageLoop::current()->PostDelayedTask( MessageLoop::current()->PostDelayedTask(
FROM_HERE, FROM_HERE,
base::Bind(&WebWidgetHost::ScheduleComposite, weak_factory_.GetWeakPtr()), base::Bind(&WebWidgetHost::ScheduleComposite, weak_factory_.GetWeakPtr()),
10); base::TimeDelta::FromMilliseconds(10));
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment