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

Unified Diff: webkit/quota/quota_task.cc

Issue 8342004: base::Bind: Final cleanups in webkit/quota. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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/quota_manager.cc ('k') | webkit/quota/quota_temporary_storage_evictor_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/quota/quota_task.cc
diff --git a/webkit/quota/quota_task.cc b/webkit/quota/quota_task.cc
index f42ae4fd4eb6fb126424505dcdbfc80103cb47b2..28d275f516ee0bd18ce21ec298a57e0a89ba1e76 100644
--- a/webkit/quota/quota_task.cc
+++ b/webkit/quota/quota_task.cc
@@ -7,6 +7,7 @@
#include <algorithm>
#include <functional>
+#include "base/bind.h"
#include "base/message_loop.h"
#include "base/message_loop_proxy.h"
@@ -61,15 +62,17 @@ QuotaThreadTask::~QuotaThreadTask() {
}
void QuotaThreadTask::Run() {
- target_message_loop_->PostTask(FROM_HERE, NewRunnableMethod(
- this, &QuotaThreadTask::CallRunOnTargetThread));
+ target_message_loop_->PostTask(
+ FROM_HERE,
+ base::Bind(&QuotaThreadTask::CallRunOnTargetThread, this));
}
void QuotaThreadTask::CallRunOnTargetThread() {
DCHECK(target_message_loop_->BelongsToCurrentThread());
if (RunOnTargetThreadAsync())
original_message_loop()->PostTask(
- FROM_HERE, NewRunnableMethod(this, &QuotaThreadTask::CallCompleted));
+ FROM_HERE,
+ base::Bind(&QuotaThreadTask::CallCompleted, this));
}
bool QuotaThreadTask::RunOnTargetThreadAsync() {
« no previous file with comments | « webkit/quota/quota_manager.cc ('k') | webkit/quota/quota_temporary_storage_evictor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698