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

Unified Diff: content/public/test/test_file_system_backend.cc

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/test/test_file_system_backend.h ('k') | content/public/test/test_launcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_file_system_backend.cc
diff --git a/content/public/test/test_file_system_backend.cc b/content/public/test/test_file_system_backend.cc
index ed71987069b9b4f36253b0cc0b65f016b5d1c1ab..ea53cc186cb9796f67ccdaac463726417b5df810 100644
--- a/content/public/test/test_file_system_backend.cc
+++ b/content/public/test/test_file_system_backend.cc
@@ -170,7 +170,7 @@ TestFileSystemBackend::GetCopyOrMoveFileValidatorFactory(
}
void TestFileSystemBackend::InitializeCopyOrMoveFileValidatorFactory(
- scoped_ptr<storage::CopyOrMoveFileValidatorFactory> factory) {
+ std::unique_ptr<storage::CopyOrMoveFileValidatorFactory> factory) {
if (!copy_or_move_file_validator_factory_)
copy_or_move_file_validator_factory_ = std::move(factory);
}
@@ -179,7 +179,7 @@ FileSystemOperation* TestFileSystemBackend::CreateFileSystemOperation(
const FileSystemURL& url,
FileSystemContext* context,
base::File::Error* error_code) const {
- scoped_ptr<FileSystemOperationContext> operation_context(
+ std::unique_ptr<FileSystemOperationContext> operation_context(
new FileSystemOperationContext(context));
operation_context->set_update_observers(*GetUpdateObservers(url.type()));
operation_context->set_change_observers(*GetChangeObservers(url.type()));
@@ -197,26 +197,26 @@ bool TestFileSystemBackend::HasInplaceCopyImplementation(
return true;
}
-scoped_ptr<storage::FileStreamReader>
+std::unique_ptr<storage::FileStreamReader>
TestFileSystemBackend::CreateFileStreamReader(
const FileSystemURL& url,
int64_t offset,
int64_t max_bytes_to_read,
const base::Time& expected_modification_time,
FileSystemContext* context) const {
- return scoped_ptr<storage::FileStreamReader>(
+ return std::unique_ptr<storage::FileStreamReader>(
storage::FileStreamReader::CreateForFileSystemFile(
context, url, offset, expected_modification_time));
}
-scoped_ptr<storage::FileStreamWriter>
+std::unique_ptr<storage::FileStreamWriter>
TestFileSystemBackend::CreateFileStreamWriter(
const FileSystemURL& url,
int64_t offset,
FileSystemContext* context) const {
- return scoped_ptr<storage::FileStreamWriter>(
- new storage::SandboxFileStreamWriter(
- context, url, offset, *GetUpdateObservers(url.type())));
+ return std::unique_ptr<storage::FileStreamWriter>(
+ new storage::SandboxFileStreamWriter(context, url, offset,
+ *GetUpdateObservers(url.type())));
}
storage::FileSystemQuotaUtil* TestFileSystemBackend::GetQuotaUtil() {
« no previous file with comments | « content/public/test/test_file_system_backend.h ('k') | content/public/test/test_launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698