summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webkit/appcache/appcache_response_unittest.cc4
-rw-r--r--webkit/dom_storage/dom_storage_task_runner.cc5
2 files changed, 4 insertions, 5 deletions
diff --git a/webkit/appcache/appcache_response_unittest.cc b/webkit/appcache/appcache_response_unittest.cc
index 6d989af..db0cc31 100644
--- a/webkit/appcache/appcache_response_unittest.cc
+++ b/webkit/appcache/appcache_response_unittest.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.
@@ -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() {
diff --git a/webkit/dom_storage/dom_storage_task_runner.cc b/webkit/dom_storage/dom_storage_task_runner.cc
index dc70b0a..3ea1b3a 100644
--- a/webkit/dom_storage/dom_storage_task_runner.cc
+++ b/webkit/dom_storage/dom_storage_task_runner.cc
@@ -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