Index: webkit/quota/quota_task.cc |
=================================================================== |
--- webkit/quota/quota_task.cc (revision 86470) |
+++ webkit/quota/quota_task.cc (working copy) |
@@ -67,11 +67,19 @@ |
void QuotaThreadTask::CallRunOnTargetThread() { |
DCHECK(target_message_loop_->BelongsToCurrentThread()); |
+ if (RunOnTargetThreadAsync()) |
+ original_message_loop()->PostTask( |
+ FROM_HERE, NewRunnableMethod(this, &QuotaThreadTask::CallCompleted)); |
+} |
+ |
+bool QuotaThreadTask::RunOnTargetThreadAsync() { |
RunOnTargetThread(); |
- original_message_loop()->PostTask( |
- FROM_HERE, NewRunnableMethod(this, &QuotaThreadTask::CallCompleted)); |
+ return true; |
} |
+void QuotaThreadTask::RunOnTargetThread() { |
+} |
+ |
// QuotaTaskObserver ------------------------------------------------------- |
QuotaTaskObserver::~QuotaTaskObserver() { |