Chromium Code Reviews| Index: webkit/quota/quota_task.cc |
| =================================================================== |
| --- webkit/quota/quota_task.cc (revision 85641) |
| +++ webkit/quota/quota_task.cc (working copy) |
| @@ -67,11 +67,19 @@ |
| void QuotaThreadTask::CallRunOnTargetThread() { |
| DCHECK(target_message_loop_->BelongsToCurrentThread()); |
| + if (RunOnTargetThreadAsync()) |
|
kinuko
2011/05/23 04:55:53
when I saw the previous code I thought you would w
|
| + 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() { |