summaryrefslogtreecommitdiffstats
path: root/webkit/quota/quota_task.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-18 20:29:47 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-18 20:29:47 +0000
commit07abfeef1f921f596d6815f95dabb9f6d0afe596 (patch)
tree43c46eb3301720b14f85977d64a80ecd8b704cb5 /webkit/quota/quota_task.cc
parenta2cdf1e8ca027b5bc7aa38df5761b86376da6932 (diff)
downloadchromium_src-07abfeef1f921f596d6815f95dabb9f6d0afe596.zip
chromium_src-07abfeef1f921f596d6815f95dabb9f6d0afe596.tar.gz
chromium_src-07abfeef1f921f596d6815f95dabb9f6d0afe596.tar.bz2
base::Bind: Final cleanups in webkit/quota.
BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/8342004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106116 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/quota/quota_task.cc')
-rw-r--r--webkit/quota/quota_task.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/webkit/quota/quota_task.cc b/webkit/quota/quota_task.cc
index f42ae4f..28d275f 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() {