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

Unified Diff: sync/internal_api/attachments/attachment_uploader_impl.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_uploader_impl.cc
diff --git a/sync/internal_api/attachments/attachment_uploader_impl.cc b/sync/internal_api/attachments/attachment_uploader_impl.cc
index 735af8c81630ca3e79e305f359a5405aa1a34d7c..e0246d80328cf625742ca349445b9e3b2040d16c 100644
--- a/sync/internal_api/attachments/attachment_uploader_impl.cc
+++ b/sync/internal_api/attachments/attachment_uploader_impl.cc
@@ -5,8 +5,8 @@
#include "sync/internal_api/public/attachments/attachment_uploader_impl.h"
#include <stdint.h>
-
#include <string>
+#include <utility>
#include <vector>
#include "base/base64.h"
@@ -329,7 +329,7 @@ void AttachmentUploaderImpl::UploadAttachment(const Attachment& attachment,
url, url_request_context_getter_, attachment, callback, account_id_,
scopes_, token_service_provider_.get(), raw_store_birthday_,
weak_ptr_factory_.GetWeakPtr(), model_type_));
- state_map_.add(unique_id, upload_state.Pass());
+ state_map_.add(unique_id, std::move(upload_state));
}
// Static.

Powered by Google App Engine
This is Rietveld 408576698