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

Unified Diff: storage/browser/database/database_quota_client.cc

Issue 1120553002: [storage] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Nits Created 5 years, 8 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 | « storage/browser/database/database_quota_client.h ('k') | storage/browser/database/database_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/database/database_quota_client.cc
diff --git a/storage/browser/database/database_quota_client.cc b/storage/browser/database/database_quota_client.cc
index 5119a1cd8016fed81b0022648c9034c6db7c4143..fd55a6fcd53242ef228b6831d64b615dba4b7657 100644
--- a/storage/browser/database/database_quota_client.cc
+++ b/storage/browser/database/database_quota_client.cc
@@ -10,8 +10,8 @@
#include "base/bind_helpers.h"
#include "base/location.h"
#include "base/memory/scoped_ptr.h"
-#include "base/message_loop/message_loop_proxy.h"
#include "base/task_runner_util.h"
+#include "base/thread_task_runner_handle.h"
#include "net/base/net_errors.h"
#include "net/base/net_util.h"
#include "storage/browser/database/database_tracker.h"
@@ -95,7 +95,7 @@ void DidDeleteOriginData(
} // namespace
DatabaseQuotaClient::DatabaseQuotaClient(
- base::MessageLoopProxy* db_tracker_thread,
+ base::SingleThreadTaskRunner* db_tracker_thread,
DatabaseTracker* db_tracker)
: db_tracker_thread_(db_tracker_thread), db_tracker_(db_tracker) {
}
@@ -200,7 +200,7 @@ void DatabaseQuotaClient::DeleteOriginData(const GURL& origin,
base::Callback<void(int)> delete_callback =
base::Bind(&DidDeleteOriginData,
- base::MessageLoopProxy::current(),
+ base::ThreadTaskRunnerHandle::Get(),
callback);
PostTaskAndReplyWithResult(
« no previous file with comments | « storage/browser/database/database_quota_client.h ('k') | storage/browser/database/database_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698