From ebee45cb2ff9b8eda19a02f2474e6d4e2331fd30 Mon Sep 17 00:00:00 2001 From: "tedvessenes@gmail.com" Date: Tue, 31 Jan 2012 05:14:00 +0000 Subject: Update a few more function calls to use TimeDeltas instead of int ms. I spotted and fixed another interface regression since my last round of fixes. Can you review this? R=tkent@chromium.org BUG=108171 TEST= Review URL: http://codereview.chromium.org/9302010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119855 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/support/webkit_support.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'webkit') diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc index 7fd6678..f8925fb 100644 --- a/webkit/support/webkit_support.cc +++ b/webkit/support/webkit_support.cc @@ -451,12 +451,16 @@ WebDevToolsAgentClient::WebKitClientMessageLoop* CreateDevToolsMessageLoop() { void PostDelayedTask(void (*func)(void*), void* context, int64 delay_ms) { MessageLoop::current()->PostDelayedTask( - FROM_HERE, base::Bind(func, context), delay_ms); + FROM_HERE, + base::Bind(func, context), + base::TimeDelta::FromMilliseconds(delay_ms)); } void PostDelayedTask(TaskAdaptor* task, int64 delay_ms) { MessageLoop::current()->PostDelayedTask( - FROM_HERE, base::Bind(&TaskAdaptor::Run, base::Owned(task)), delay_ms); + FROM_HERE, + base::Bind(&TaskAdaptor::Run, base::Owned(task)), + base::TimeDelta::FromMilliseconds(delay_ms)); } // Wrappers for FilePath and file_util -- cgit v1.1