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

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

Issue 1544293002: Convert Pass()→std::move() in //content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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_error_injector.cc ('k') | content/public/test/test_file_system_context.cc » ('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 8ebe052f42a719f10e4be7be739987b50e0d9c38..ed71987069b9b4f36253b0cc0b65f016b5d1c1ab 100644
--- a/content/public/test/test_file_system_backend.cc
+++ b/content/public/test/test_file_system_backend.cc
@@ -6,6 +6,7 @@
#include <set>
#include <string>
+#include <utility>
#include <vector>
#include "base/files/file.h"
@@ -171,7 +172,7 @@ TestFileSystemBackend::GetCopyOrMoveFileValidatorFactory(
void TestFileSystemBackend::InitializeCopyOrMoveFileValidatorFactory(
scoped_ptr<storage::CopyOrMoveFileValidatorFactory> factory) {
if (!copy_or_move_file_validator_factory_)
- copy_or_move_file_validator_factory_ = factory.Pass();
+ copy_or_move_file_validator_factory_ = std::move(factory);
}
FileSystemOperation* TestFileSystemBackend::CreateFileSystemOperation(
@@ -182,7 +183,8 @@ FileSystemOperation* TestFileSystemBackend::CreateFileSystemOperation(
new FileSystemOperationContext(context));
operation_context->set_update_observers(*GetUpdateObservers(url.type()));
operation_context->set_change_observers(*GetChangeObservers(url.type()));
- return FileSystemOperation::Create(url, context, operation_context.Pass());
+ return FileSystemOperation::Create(url, context,
+ std::move(operation_context));
}
bool TestFileSystemBackend::SupportsStreaming(
« no previous file with comments | « content/public/test/test_file_error_injector.cc ('k') | content/public/test/test_file_system_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698