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

Unified Diff: sync/tools/sync_client.cc

Issue 1539843002: Convert Pass()→std::move() in sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaned up 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 | « sync/test/fake_server/fake_server.cc ('k') | sync/util/cryptographer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/tools/sync_client.cc
diff --git a/sync/tools/sync_client.cc b/sync/tools/sync_client.cc
index 378189984adf366c98960e281a37f0ac9601fc2e..deba666ca0873a8ac87753b06e9e7d9293c18626 100644
--- a/sync/tools/sync_client.cc
+++ b/sync/tools/sync_client.cc
@@ -3,10 +3,10 @@
// found in the LICENSE file.
#include <stdint.h>
-
#include <cstddef>
#include <cstdio>
#include <string>
+#include <utility>
#include "base/at_exit.h"
#include "base/command_line.h"
@@ -241,7 +241,7 @@ class InvalidatorShim : public InvalidationHandler {
++inv_it) {
scoped_ptr<syncer::InvalidationInterface> inv_adapter(
new InvalidationAdapter(*inv_it));
- sync_manager_->OnIncomingInvalidation(type, inv_adapter.Pass());
+ sync_manager_->OnIncomingInvalidation(type, std::move(inv_adapter));
}
}
}
@@ -428,7 +428,7 @@ int SyncClientMain(int argc, char* argv[]) {
args.database_location = database_dir.path();
args.event_handler = WeakHandle<JsEventHandler>(js_event_handler.AsWeakPtr());
args.service_url = GURL(kSyncServiceURL);
- args.post_factory = post_factory.Pass();
+ args.post_factory = std::move(post_factory);
args.workers = workers;
args.extensions_activity = extensions_activity;
args.change_delegate = &change_delegate;
« no previous file with comments | « sync/test/fake_server/fake_server.cc ('k') | sync/util/cryptographer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698