Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: webkit/quota/mock_storage_client.cc

Issue 7583053: Add MessageLoopProxy::current (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: No need for MessageLoopProxy destruction observer. Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/quota/mock_quota_manager_unittest.cc ('k') | webkit/quota/quota_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/quota/mock_storage_client.cc
diff --git a/webkit/quota/mock_storage_client.cc b/webkit/quota/mock_storage_client.cc
index 203c6cb53059e26145f46c7744ae3a695a2cf8f2..d42ed8d0a8ec0e84c106c0924834fab33433c2fd 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));
« no previous file with comments | « webkit/quota/mock_quota_manager_unittest.cc ('k') | webkit/quota/quota_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698