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

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

Issue 1546243002: Convert Pass()→std::move() in //storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/sandbox_file_system_backend.h" 5 #include "storage/browser/fileapi/sandbox_file_system_backend.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <utility>
8 9
9 #include "base/bind.h" 10 #include "base/bind.h"
10 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
11 #include "base/logging.h" 12 #include "base/logging.h"
12 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram.h"
13 #include "base/task_runner_util.h" 14 #include "base/task_runner_util.h"
14 #include "storage/browser/fileapi/async_file_util_adapter.h" 15 #include "storage/browser/fileapi/async_file_util_adapter.h"
15 #include "storage/browser/fileapi/copy_or_move_file_validator.h" 16 #include "storage/browser/fileapi/copy_or_move_file_validator.h"
16 #include "storage/browser/fileapi/file_stream_reader.h" 17 #include "storage/browser/fileapi/file_stream_reader.h"
17 #include "storage/browser/fileapi/file_stream_writer.h" 18 #include "storage/browser/fileapi/file_stream_writer.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 delegate_->CreateFileSystemOperationContext(url, context, error_code); 113 delegate_->CreateFileSystemOperationContext(url, context, error_code);
113 if (!operation_context) 114 if (!operation_context)
114 return NULL; 115 return NULL;
115 116
116 SpecialStoragePolicy* policy = delegate_->special_storage_policy(); 117 SpecialStoragePolicy* policy = delegate_->special_storage_policy();
117 if (policy && policy->IsStorageUnlimited(url.origin())) 118 if (policy && policy->IsStorageUnlimited(url.origin()))
118 operation_context->set_quota_limit_type(storage::kQuotaLimitTypeUnlimited); 119 operation_context->set_quota_limit_type(storage::kQuotaLimitTypeUnlimited);
119 else 120 else
120 operation_context->set_quota_limit_type(storage::kQuotaLimitTypeLimited); 121 operation_context->set_quota_limit_type(storage::kQuotaLimitTypeLimited);
121 122
122 return FileSystemOperation::Create(url, context, operation_context.Pass()); 123 return FileSystemOperation::Create(url, context,
124 std::move(operation_context));
123 } 125 }
124 126
125 bool SandboxFileSystemBackend::SupportsStreaming( 127 bool SandboxFileSystemBackend::SupportsStreaming(
126 const storage::FileSystemURL& url) const { 128 const storage::FileSystemURL& url) const {
127 return false; 129 return false;
128 } 130 }
129 131
130 bool SandboxFileSystemBackend::HasInplaceCopyImplementation( 132 bool SandboxFileSystemBackend::HasInplaceCopyImplementation(
131 storage::FileSystemType type) const { 133 storage::FileSystemType type) const {
132 return false; 134 return false;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 return delegate_->GetAccessObservers(type); 176 return delegate_->GetAccessObservers(type);
175 } 177 }
176 178
177 SandboxFileSystemBackendDelegate::OriginEnumerator* 179 SandboxFileSystemBackendDelegate::OriginEnumerator*
178 SandboxFileSystemBackend::CreateOriginEnumerator() { 180 SandboxFileSystemBackend::CreateOriginEnumerator() {
179 DCHECK(delegate_); 181 DCHECK(delegate_);
180 return delegate_->CreateOriginEnumerator(); 182 return delegate_->CreateOriginEnumerator();
181 } 183 }
182 184
183 } // namespace storage 185 } // namespace storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698