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

Unified Diff: sync/internal_api/attachments/attachment_store_frontend.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_store_frontend.cc
diff --git a/sync/internal_api/attachments/attachment_store_frontend.cc b/sync/internal_api/attachments/attachment_store_frontend.cc
index f1d1ffe42974c0ed4f9c0a1079e138b8ffd1dd07..b098dd4b6bca4cecf15d075a9037ce65b1e2b6e7 100644
--- a/sync/internal_api/attachments/attachment_store_frontend.cc
+++ b/sync/internal_api/attachments/attachment_store_frontend.cc
@@ -4,6 +4,8 @@
#include "sync/internal_api/public/attachments/attachment_store_frontend.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/location.h"
#include "base/sequenced_task_runner.h"
@@ -24,7 +26,7 @@ void NoOp(scoped_ptr<AttachmentStoreBackend> backend) {
AttachmentStoreFrontend::AttachmentStoreFrontend(
scoped_ptr<AttachmentStoreBackend> backend,
const scoped_refptr<base::SequencedTaskRunner>& backend_task_runner)
- : backend_(backend.Pass()), backend_task_runner_(backend_task_runner) {
+ : backend_(std::move(backend)), backend_task_runner_(backend_task_runner) {
DCHECK(backend_);
DCHECK(backend_task_runner_.get());
}

Powered by Google App Engine
This is Rietveld 408576698