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

Unified Diff: components/sync_driver/glue/sync_backend_registrar.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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: components/sync_driver/glue/sync_backend_registrar.cc
diff --git a/components/sync_driver/glue/sync_backend_registrar.cc b/components/sync_driver/glue/sync_backend_registrar.cc
index 263224ece7a2562aa633a48fa9c19a0d0b74471b..0cd87c2d2fb6aa3e6a0c6284876613324db8fa02 100644
--- a/components/sync_driver/glue/sync_backend_registrar.cc
+++ b/components/sync_driver/glue/sync_backend_registrar.cc
@@ -5,6 +5,7 @@
#include "components/sync_driver/glue/sync_backend_registrar.h"
#include <cstddef>
+#include <utility>
#include "base/compiler_specific.h"
#include "base/logging.h"
@@ -30,7 +31,7 @@ SyncBackendRegistrar::SyncBackendRegistrar(
DCHECK(ui_thread_->BelongsToCurrentThread());
DCHECK(sync_client_);
- sync_thread_ = sync_thread.Pass();
+ sync_thread_ = std::move(sync_thread);
if (!sync_thread_) {
sync_thread_.reset(new base::Thread("Chrome_SyncThread"));
base::Thread::Options options;
@@ -330,7 +331,7 @@ void SyncBackendRegistrar::RemoveWorker(syncer::ModelSafeGroup group) {
}
scoped_ptr<base::Thread> SyncBackendRegistrar::ReleaseSyncThread() {
- return sync_thread_.Pass();
+ return std::move(sync_thread_);
}
void SyncBackendRegistrar::Shutdown() {

Powered by Google App Engine
This is Rietveld 408576698