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

Unified Diff: content/child/request_extra_data.h

Issue 1544293002: Convert Pass()→std::move() in //content (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 | « content/child/process_control_impl.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/request_extra_data.h
diff --git a/content/child/request_extra_data.h b/content/child/request_extra_data.h
index 0a3a2e06e80b039c2912949f49e59abce9065733..0905789a2a02accbf664ea7ae280ac01e4f8405d 100644
--- a/content/child/request_extra_data.h
+++ b/content/child/request_extra_data.h
@@ -5,6 +5,8 @@
#ifndef CONTENT_CHILD_REQUEST_EXTRA_DATA_H_
#define CONTENT_CHILD_REQUEST_EXTRA_DATA_H_
+#include <utility>
+
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "content/child/web_url_loader_impl.h"
@@ -114,12 +116,12 @@ class CONTENT_EXPORT RequestExtraData
// PlzNavigate: |stream_override| is used to override certain parameters of
// navigation requests.
scoped_ptr<StreamOverrideParameters> TakeStreamOverrideOwnership() {
- return stream_override_.Pass();
+ return std::move(stream_override_);
}
void set_stream_override(
scoped_ptr<StreamOverrideParameters> stream_override) {
- stream_override_ = stream_override.Pass();
+ stream_override_ = std::move(stream_override);
}
private:
« no previous file with comments | « content/child/process_control_impl.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698