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

Unified Diff: sync/internal_api/attachments/attachment_service_proxy_for_test.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
Index: sync/internal_api/attachments/attachment_service_proxy_for_test.cc
diff --git a/sync/internal_api/attachments/attachment_service_proxy_for_test.cc b/sync/internal_api/attachments/attachment_service_proxy_for_test.cc
index 8682a9112030ef7c254b1c9b7f7737d1538a7777..fa8756b7c276ecd2b9c3bddd1408bf153f589610 100644
--- a/sync/internal_api/attachments/attachment_service_proxy_for_test.cc
+++ b/sync/internal_api/attachments/attachment_service_proxy_for_test.cc
@@ -4,6 +4,8 @@
#include "sync/internal_api/public/attachments/attachment_service_proxy_for_test.h"
+#include <utility>
+
#include "base/message_loop/message_loop.h"
#include "base/thread_task_runner_handle.h"
#include "sync/internal_api/public/attachments/attachment_service_impl.h"
@@ -12,10 +14,10 @@ namespace syncer {
AttachmentServiceProxyForTest::OwningCore::OwningCore(
scoped_ptr<AttachmentService> wrapped,
- scoped_ptr<base::WeakPtrFactory<AttachmentService> > weak_ptr_factory)
+ scoped_ptr<base::WeakPtrFactory<AttachmentService>> weak_ptr_factory)
: Core(weak_ptr_factory->GetWeakPtr()),
- wrapped_(wrapped.Pass()),
- weak_ptr_factory_(weak_ptr_factory.Pass()) {
+ wrapped_(std::move(wrapped)),
+ weak_ptr_factory_(std::move(weak_ptr_factory)) {
DCHECK(wrapped_);
}
@@ -36,7 +38,7 @@ AttachmentServiceProxy AttachmentServiceProxyForTest::Create() {
new base::WeakPtrFactory<AttachmentService>(wrapped.get()));
scoped_refptr<Core> core_for_test(
- new OwningCore(wrapped.Pass(), weak_ptr_factory.Pass()));
+ new OwningCore(std::move(wrapped), std::move(weak_ptr_factory)));
scoped_refptr<base::SequencedTaskRunner> runner;
if (base::ThreadTaskRunnerHandle::IsSet()) {

Powered by Google App Engine
This is Rietveld 408576698