diff options
author | nduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-15 20:33:46 +0000 |
---|---|---|
committer | nduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-15 20:33:46 +0000 |
commit | edd685f15dfd2841aaeddab567aea0623db1ae69 (patch) | |
tree | 9caa53e84eb2787471dd16009daf02fb85f8890e /webkit/quota | |
parent | 5b79e5250785613d6dc7a42a27a45bb44b9cf7a0 (diff) | |
download | chromium_src-edd685f15dfd2841aaeddab567aea0623db1ae69.zip chromium_src-edd685f15dfd2841aaeddab567aea0623db1ae69.tar.gz chromium_src-edd685f15dfd2841aaeddab567aea0623db1ae69.tar.bz2 |
Add MessageLoopProxy::current
Review URL: http://codereview.chromium.org/7583053
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96819 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/quota')
-rw-r--r-- | webkit/quota/mock_quota_manager_unittest.cc | 4 | ||||
-rw-r--r-- | webkit/quota/mock_storage_client.cc | 8 | ||||
-rw-r--r-- | webkit/quota/quota_manager_unittest.cc | 4 | ||||
-rw-r--r-- | webkit/quota/quota_task.cc | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/webkit/quota/mock_quota_manager_unittest.cc b/webkit/quota/mock_quota_manager_unittest.cc index 7188906..503f8aa 100644 --- a/webkit/quota/mock_quota_manager_unittest.cc +++ b/webkit/quota/mock_quota_manager_unittest.cc @@ -39,8 +39,8 @@ class MockQuotaManagerTest : public testing::Test { manager_ = new MockQuotaManager( false /* is_incognito */, data_dir_.path(), - base::MessageLoopProxy::CreateForCurrentThread(), - base::MessageLoopProxy::CreateForCurrentThread(), + base::MessageLoopProxy::current(), + base::MessageLoopProxy::current(), policy_); } diff --git a/webkit/quota/mock_storage_client.cc b/webkit/quota/mock_storage_client.cc index 203c6cb5..d42ed8d 100644 --- a/webkit/quota/mock_storage_client.cc +++ b/webkit/quota/mock_storage_client.cc @@ -115,7 +115,7 @@ void MockStorageClient::GetOriginUsage(const GURL& origin_url, StorageType type, GetUsageCallback* callback) { usage_callbacks_.insert(callback); - base::MessageLoopProxy::CreateForCurrentThread()->PostTask( + base::MessageLoopProxy::current()->PostTask( FROM_HERE, runnable_factory_.NewRunnableMethod( &MockStorageClient::RunGetOriginUsage, origin_url, type, callback)); @@ -124,7 +124,7 @@ void MockStorageClient::GetOriginUsage(const GURL& origin_url, void MockStorageClient::GetOriginsForType( StorageType type, GetOriginsCallback* callback) { origins_callbacks_.insert(callback); - base::MessageLoopProxy::CreateForCurrentThread()->PostTask( + base::MessageLoopProxy::current()->PostTask( FROM_HERE, runnable_factory_.NewRunnableMethod( &MockStorageClient::RunGetOriginsForType, type, callback)); @@ -134,7 +134,7 @@ void MockStorageClient::GetOriginsForHost( StorageType type, const std::string& host, GetOriginsCallback* callback) { origins_callbacks_.insert(callback); - base::MessageLoopProxy::CreateForCurrentThread()->PostTask( + base::MessageLoopProxy::current()->PostTask( FROM_HERE, runnable_factory_.NewRunnableMethod( &MockStorageClient::RunGetOriginsForHost, type, host, callback)); @@ -144,7 +144,7 @@ void MockStorageClient::DeleteOriginData( const GURL& origin, StorageType type, DeletionCallback* callback) { deletion_callbacks_.insert(callback); - base::MessageLoopProxy::CreateForCurrentThread()->PostTask( + base::MessageLoopProxy::current()->PostTask( FROM_HERE, runnable_factory_.NewRunnableMethod( &MockStorageClient::RunDeleteOriginData, origin, type, callback)); diff --git a/webkit/quota/quota_manager_unittest.cc b/webkit/quota/quota_manager_unittest.cc index f43bd64..3e6b32a 100644 --- a/webkit/quota/quota_manager_unittest.cc +++ b/webkit/quota/quota_manager_unittest.cc @@ -52,8 +52,8 @@ class QuotaManagerTest : public testing::Test { quota_manager_ = new QuotaManager( false /* is_incognito */, data_dir_.path(), - MessageLoopProxy::CreateForCurrentThread(), - MessageLoopProxy::CreateForCurrentThread(), + MessageLoopProxy::current(), + MessageLoopProxy::current(), mock_special_storage_policy_); // Don't (automatically) start the eviction for testing. quota_manager_->eviction_disabled_ = true; diff --git a/webkit/quota/quota_task.cc b/webkit/quota/quota_task.cc index 1f25ddf..f42ae4f 100644 --- a/webkit/quota/quota_task.cc +++ b/webkit/quota/quota_task.cc @@ -27,7 +27,7 @@ void QuotaTask::Start() { QuotaTask::QuotaTask(QuotaTaskObserver* observer) : observer_(observer), - original_message_loop_(MessageLoopProxy::CreateForCurrentThread()) { + original_message_loop_(MessageLoopProxy::current()) { } void QuotaTask::CallCompleted() { |