| Index: chrome/browser/sync_file_system/local/syncable_file_operation_runner.cc
|
| diff --git a/chrome/browser/sync_file_system/local/syncable_file_operation_runner.cc b/chrome/browser/sync_file_system/local/syncable_file_operation_runner.cc
|
| index de4e3169c20e5f219c6f9ceda0e595d9c5efbde0..cee876d395bcadb70e430819f264aa51a6372d42 100644
|
| --- a/chrome/browser/sync_file_system/local/syncable_file_operation_runner.cc
|
| +++ b/chrome/browser/sync_file_system/local/syncable_file_operation_runner.cc
|
| @@ -68,7 +68,8 @@ void SyncableFileOperationRunner::OnWriteEnabled(const FileSystemURL& url) {
|
| RunNextRunnableTask();
|
| }
|
|
|
| -void SyncableFileOperationRunner::PostOperationTask(scoped_ptr<Task> task) {
|
| +void SyncableFileOperationRunner::PostOperationTask(
|
| + std::unique_ptr<Task> task) {
|
| DCHECK(CalledOnValidThread());
|
| pending_tasks_.push_back(task.release());
|
| RunNextRunnableTask();
|
| @@ -81,7 +82,7 @@ void SyncableFileOperationRunner::RunNextRunnableTask() {
|
| if ((*iter)->IsRunnable(sync_status())) {
|
| ++num_inflight_tasks_;
|
| DCHECK_GE(num_inflight_tasks_, 1);
|
| - scoped_ptr<Task> task(*iter);
|
| + std::unique_ptr<Task> task(*iter);
|
| pending_tasks_.erase(iter++);
|
| task->Start(sync_status());
|
| continue;
|
|
|