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

Unified Diff: chrome/browser/sync_file_system/drive_backend/sync_task.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/drive_backend/sync_task.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/sync_task.cc b/chrome/browser/sync_file_system/drive_backend/sync_task.cc
index f5f7dac7f375570e341e81b3c4d2256927a5cc65..a9727afa3baf35b66dd18b35c3f104d8ce41ec95 100644
--- a/chrome/browser/sync_file_system/drive_backend/sync_task.cc
+++ b/chrome/browser/sync_file_system/drive_backend/sync_task.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/sync_file_system/drive_backend/sync_task.h"
+#include <utility>
+
#include "base/bind.h"
#include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h"
#include "chrome/browser/sync_file_system/drive_backend/sync_task_token.h"
@@ -17,7 +19,7 @@ namespace {
void CallRunExclusive(const base::WeakPtr<ExclusiveTask>& task,
scoped_ptr<SyncTaskToken> token) {
if (task)
- task->RunExclusive(SyncTaskToken::WrapToCallback(token.Pass()));
+ task->RunExclusive(SyncTaskToken::WrapToCallback(std::move(token)));
}
} // namespace
@@ -30,7 +32,7 @@ void ExclusiveTask::RunPreflight(scoped_ptr<SyncTaskToken> token) {
task_blocker->exclusive = true;
SyncTaskManager::UpdateTaskBlocker(
- token.Pass(), task_blocker.Pass(),
+ std::move(token), std::move(task_blocker),
base::Bind(&CallRunExclusive, weak_ptr_factory_.GetWeakPtr()));
}

Powered by Google App Engine
This is Rietveld 408576698