Chromium Code Reviews| Index: storage/browser/fileapi/file_system_operation_runner.cc |
| diff --git a/storage/browser/fileapi/file_system_operation_runner.cc b/storage/browser/fileapi/file_system_operation_runner.cc |
| index cc6bd3838ffc385ecb19d2ba5b12a405d1cdef37..99c2a79fbd24b7140f9ce8ca83d36755dfeaf3e6 100644 |
| --- a/storage/browser/fileapi/file_system_operation_runner.cc |
| +++ b/storage/browser/fileapi/file_system_operation_runner.cc |
| @@ -658,7 +658,8 @@ FileSystemOperationRunner::BeginOperation( |
| FileSystemOperation* operation, |
|
danakj
2016/11/18 00:15:34
can be unique_ptr?
|
| base::WeakPtr<BeginOperationScoper> scope) { |
| OperationHandle handle; |
| - handle.id = operations_.Add(operation); |
| + handle.id = operations_.Add( |
| + std::unique_ptr<FileSystemOperation>(operation)); |
| handle.scope = scope; |
| return handle; |
| } |