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

Unified Diff: cloud_print/service/service_state.cc

Issue 1550693002: Global conversion of Pass()→std::move() on Linux (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
« no previous file with comments | « apps/saved_files_service.cc ('k') | crypto/nss_key_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cloud_print/service/service_state.cc
diff --git a/cloud_print/service/service_state.cc b/cloud_print/service/service_state.cc
index 33d771dbc9b3e3a0d8b01de269bb89bc03d02d69..1c644ce37908c931e33e664c9be31a7cac194fc6 100644
--- a/cloud_print/service/service_state.cc
+++ b/cloud_print/service/service_state.cc
@@ -5,6 +5,7 @@
#include "cloud_print/service/service_state.h"
#include <stdint.h>
+#include <utility>
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
@@ -149,7 +150,7 @@ std::string ServiceState::ToString() {
xmpp_auth_token_);
base::DictionaryValue services;
- services.Set(kCloudPrintJsonName, cloud_print.Pass());
+ services.Set(kCloudPrintJsonName, std::move(cloud_print));
std::string json;
base::JSONWriter::WriteWithOptions(
@@ -185,7 +186,7 @@ std::string ServiceState::LoginToGoogle(const std::string& service,
scoped_ptr<net::UploadElementReader> reader(
net::UploadOwnedBytesElementReader::CreateWithString(post_body));
request->set_upload(
- net::ElementsUploadDataStream::CreateWithReader(reader.Pass(), 0));
+ net::ElementsUploadDataStream::CreateWithReader(std::move(reader), 0));
request->SetExtraRequestHeaderByName(
"Content-Type", "application/x-www-form-urlencoded", true);
request->set_method("POST");
« no previous file with comments | « apps/saved_files_service.cc ('k') | crypto/nss_key_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698