diff options
author | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-27 00:46:01 +0000 |
---|---|---|
committer | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-27 00:46:01 +0000 |
commit | 910a39d45a835330801ee40df924d01a0ce11a2b (patch) | |
tree | 3dc66861fa90185b48b0ab93f31cbc0c40a03032 /webkit | |
parent | bfc3219c543c0364ca7f987ee8198d01df8e01d3 (diff) | |
download | chromium_src-910a39d45a835330801ee40df924d01a0ce11a2b.zip chromium_src-910a39d45a835330801ee40df924d01a0ce11a2b.tar.gz chromium_src-910a39d45a835330801ee40df924d01a0ce11a2b.tar.bz2 |
Convert use of int ms to TimeDelta in files owned by michaeln.
This is the second upload, as the first one was committed and then reverted.
BUG=108171
TEST=
Review URL: http://codereview.chromium.org/9240001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119323 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/appcache/appcache_group.cc | 6 | ||||
-rw-r--r-- | webkit/appcache/appcache_storage_impl.cc | 10 |
2 files changed, 9 insertions, 7 deletions
diff --git a/webkit/appcache/appcache_group.cc b/webkit/appcache/appcache_group.cc index 05e1ac5..1bc5a1f 100644 --- a/webkit/appcache/appcache_group.cc +++ b/webkit/appcache/appcache_group.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. @@ -231,7 +231,9 @@ void AppCacheGroup::ScheduleUpdateRestart(int delay_ms) { restart_update_task_.Reset( base::Bind(&AppCacheGroup::RunQueuedUpdates, this)); MessageLoop::current()->PostDelayedTask( - FROM_HERE, restart_update_task_.callback(), delay_ms); + FROM_HERE, + restart_update_task_.callback(), + base::TimeDelta::FromMilliseconds(delay_ms)); } void AppCacheGroup::HostDestructionImminent(AppCacheHost* host) { diff --git a/webkit/appcache/appcache_storage_impl.cc b/webkit/appcache/appcache_storage_impl.cc index 4e3c3be..e68cf27 100644 --- a/webkit/appcache/appcache_storage_impl.cc +++ b/webkit/appcache/appcache_storage_impl.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. @@ -283,12 +283,12 @@ void AppCacheStorageImpl::InitTask::RunCompleted() { if (!storage_->is_disabled()) { storage_->usage_map_.swap(usage_map_); - const int kDelayMillis = 5 * 60 * 1000; // Five minutes. + const base::TimeDelta kDelay = base::TimeDelta::FromMinutes(5); MessageLoop::current()->PostDelayedTask( FROM_HERE, base::Bind(&AppCacheStorageImpl::DelayedStartDeletingUnusedResponses, storage_->weak_factory_.GetWeakPtr()), - kDelayMillis); + kDelay); } if (storage_->service()->quota_client()) @@ -1572,12 +1572,12 @@ void AppCacheStorageImpl::StartDeletingResponses( void AppCacheStorageImpl::ScheduleDeleteOneResponse() { DCHECK(!is_response_deletion_scheduled_); - const int kDelayMillis = 10; + const base::TimeDelta kDelay = base::TimeDelta::FromMilliseconds(10); MessageLoop::current()->PostDelayedTask( FROM_HERE, base::Bind(&AppCacheStorageImpl::DeleteOneResponse, weak_factory_.GetWeakPtr()), - kDelayMillis); + kDelay); is_response_deletion_scheduled_ = true; } |