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

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: 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 d67a977c6ca7139f47fd1b372a39c574d8a2dc0b..6874e7c199c42f2384089b1273c5399a33b55e8d 100644
--- a/sync/internal_api/attachments/attachment_uploader_impl.cc
+++ b/sync/internal_api/attachments/attachment_uploader_impl.cc
@@ -2,9 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "sync/internal_api/public/attachments/attachment_uploader_impl.h"
-
#include <string>
+#include <utility>
#include <vector>
#include "base/base64.h"
@@ -25,6 +24,7 @@
#include "net/url_request/url_fetcher_delegate.h"
#include "net/url_request/url_request_status.h"
#include "sync/api/attachments/attachment.h"
+#include "sync/internal_api/public/attachments/attachment_uploader_impl.h"
Nicolas Zea 2015/12/18 23:46:54 keep up top
#include "sync/protocol/sync.pb.h"
namespace {
@@ -327,7 +327,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