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

Unified Diff: chrome/browser/sync_file_system/local/sync_file_system_backend.cc

Issue 1545283002: Convert Pass()→std::move() in //chrome/browser/ui (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
Index: chrome/browser/sync_file_system/local/sync_file_system_backend.cc
diff --git a/chrome/browser/sync_file_system/local/sync_file_system_backend.cc b/chrome/browser/sync_file_system/local/sync_file_system_backend.cc
index fbb94444c58296561db240984b77793198fa9213..cd67ac113b2d38b8000f38f7e11b087d2e75d845 100644
--- a/chrome/browser/sync_file_system/local/sync_file_system_backend.cc
+++ b/chrome/browser/sync_file_system/local/sync_file_system_backend.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/sync_file_system/local/sync_file_system_backend.h"
#include <string>
+#include <utility>
#include "base/logging.h"
#include "chrome/browser/chrome_notification_types.h"
@@ -168,12 +169,12 @@ storage::FileSystemOperation* SyncFileSystemBackend::CreateFileSystemOperation(
return nullptr;
if (url.type() == storage::kFileSystemTypeSyncableForInternalSync) {
- return storage::FileSystemOperation::Create(
- url, context, operation_context.Pass());
+ return storage::FileSystemOperation::Create(url, context,
+ std::move(operation_context));
}
- return new SyncableFileSystemOperation(
- url, context, operation_context.Pass());
+ return new SyncableFileSystemOperation(url, context,
+ std::move(operation_context));
}
bool SyncFileSystemBackend::SupportsStreaming(
@@ -240,7 +241,7 @@ void SyncFileSystemBackend::SetLocalFileChangeTracker(
scoped_ptr<LocalFileChangeTracker> tracker) {
DCHECK(!change_tracker_);
DCHECK(tracker);
- change_tracker_ = tracker.Pass();
+ change_tracker_ = std::move(tracker);
storage::SandboxFileSystemBackendDelegate* delegate = GetDelegate();
delegate->AddFileUpdateObserver(storage::kFileSystemTypeSyncable,

Powered by Google App Engine
This is Rietveld 408576698