Commit 6f35f4ee authored by tedvessenes@gmail.com's avatar tedvessenes@gmail.com

Convert uses of int ms to TimeDelta in webkit/appcache and webkit/dom_storage.


R=michaeln@chromium.org
BUG=108171


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124877 0039d316-1c4b-4281-b951-d872f2087c98
parent 3eebc359
// 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.
......@@ -644,7 +644,7 @@ class AppCacheResponseTest : public testing::Test {
MessageLoop::current()->PostDelayedTask(
FROM_HERE, base::Bind(&AppCacheResponseTest::VerifyNoCallbacks,
base::Unretained(this)),
10);
base::TimeDelta::FromMilliseconds(10));
}
void VerifyNoCallbacks() {
......
......@@ -31,8 +31,7 @@ bool DomStorageTaskRunner::PostDelayedTask(
const tracked_objects::Location& from_here,
const base::Closure& task,
base::TimeDelta delay) {
return message_loop_->PostDelayedTask(from_here, task,
delay.InMilliseconds());
return message_loop_->PostDelayedTask(from_here, task, delay);
}
// DomStorageWorkerPoolTaskRunner
......@@ -68,7 +67,7 @@ bool DomStorageWorkerPoolTaskRunner::PostDelayedTask(
FROM_HERE,
base::Bind(base::IgnoreResult(&DomStorageWorkerPoolTaskRunner::PostTask),
this, from_here, task),
delay.InMilliseconds());
delay);
}
// MockDomStorageTaskRunner
......
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