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

Unified Diff: net/url_request/url_request.cc

Issue 1545233002: Convert Pass()→std::move() in //net (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 | « net/url_request/url_fetcher_impl.cc ('k') | net/url_request/url_request_context_builder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request.cc
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index ef5a413786f45b7d176ea9dd67e7a67eb2b6105b..4d1a871d39eec390bfaee27f446f4f34ef510ddb 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -4,6 +4,8 @@
#include "net/url_request/url_request.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/callback.h"
@@ -208,7 +210,7 @@ void URLRequest::AppendChunkToUpload(const char* bytes,
}
void URLRequest::set_upload(scoped_ptr<UploadDataStream> upload) {
- upload_data_stream_ = upload.Pass();
+ upload_data_stream_ = std::move(upload);
}
const UploadDataStream* URLRequest::get_upload() const {
@@ -287,7 +289,7 @@ scoped_ptr<base::Value> URLRequest::GetStateAsValue() const {
for (const GURL& url : url_chain_) {
list->AppendString(url.possibly_invalid_spec());
}
- dict->Set("url_chain", list.Pass());
+ dict->Set("url_chain", std::move(list));
}
dict->SetInteger("load_flags", load_flags_);
@@ -322,7 +324,7 @@ scoped_ptr<base::Value> URLRequest::GetStateAsValue() const {
}
if (status_.error() != OK)
dict->SetInteger("net_error", status_.error());
- return dict.Pass();
+ return std::move(dict);
}
void URLRequest::LogBlockedBy(const char* blocked_by) {
« no previous file with comments | « net/url_request/url_fetcher_impl.cc ('k') | net/url_request/url_request_context_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698