Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: storage/browser/fileapi/isolated_file_system_backend.cc

Issue 2254183002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "storage/browser/fileapi/isolated_file_system_backend.h" 5 #include "storage/browser/fileapi/isolated_file_system_backend.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 DCHECK(error_code); 103 DCHECK(error_code);
104 *error_code = base::File::FILE_OK; 104 *error_code = base::File::FILE_OK;
105 return NULL; 105 return NULL;
106 } 106 }
107 107
108 FileSystemOperation* IsolatedFileSystemBackend::CreateFileSystemOperation( 108 FileSystemOperation* IsolatedFileSystemBackend::CreateFileSystemOperation(
109 const FileSystemURL& url, 109 const FileSystemURL& url,
110 FileSystemContext* context, 110 FileSystemContext* context,
111 base::File::Error* error_code) const { 111 base::File::Error* error_code) const {
112 return FileSystemOperation::Create( 112 return FileSystemOperation::Create(
113 url, context, base::WrapUnique(new FileSystemOperationContext(context))); 113 url, context, base::MakeUnique<FileSystemOperationContext>(context));
114 } 114 }
115 115
116 bool IsolatedFileSystemBackend::SupportsStreaming( 116 bool IsolatedFileSystemBackend::SupportsStreaming(
117 const storage::FileSystemURL& url) const { 117 const storage::FileSystemURL& url) const {
118 return false; 118 return false;
119 } 119 }
120 120
121 bool IsolatedFileSystemBackend::HasInplaceCopyImplementation( 121 bool IsolatedFileSystemBackend::HasInplaceCopyImplementation(
122 storage::FileSystemType type) const { 122 storage::FileSystemType type) const {
123 DCHECK(type == kFileSystemTypeNativeLocal || type == kFileSystemTypeDragged || 123 DCHECK(type == kFileSystemTypeNativeLocal || type == kFileSystemTypeDragged ||
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 FileSystemType type) const { 162 FileSystemType type) const {
163 return NULL; 163 return NULL;
164 } 164 }
165 165
166 const AccessObserverList* IsolatedFileSystemBackend::GetAccessObservers( 166 const AccessObserverList* IsolatedFileSystemBackend::GetAccessObservers(
167 FileSystemType type) const { 167 FileSystemType type) const {
168 return NULL; 168 return NULL;
169 } 169 }
170 170
171 } // namespace storage 171 } // namespace storage
OLDNEW
« no previous file with comments | « storage/browser/blob/blob_async_builder_host.cc ('k') | storage/browser/fileapi/local_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698