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

Unified Diff: chrome/browser/profiles/off_the_record_profile_impl.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (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: chrome/browser/profiles/off_the_record_profile_impl.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc
index 0cb75f47eff5474465fdf0e373cd9926e4716cfb..b7ed2f47d0809360c2533ba552012c5a276a1b7d 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/profiles/off_the_record_profile_impl.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/command_line.h"
#include "base/compiler_specific.h"
@@ -318,7 +320,8 @@ net::URLRequestContextGetter* OffTheRecordProfileImpl::CreateRequestContext(
content::ProtocolHandlerMap* protocol_handlers,
content::URLRequestInterceptorScopedVector request_interceptors) {
return io_data_->CreateMainRequestContextGetter(
- protocol_handlers, request_interceptors.Pass()).get();
+ protocol_handlers, std::move(request_interceptors))
+ .get();
}
net::URLRequestContextGetter*
@@ -362,10 +365,9 @@ OffTheRecordProfileImpl::CreateRequestContextForStoragePartition(
content::ProtocolHandlerMap* protocol_handlers,
content::URLRequestInterceptorScopedVector request_interceptors) {
return io_data_->CreateIsolatedAppRequestContextGetter(
- partition_path,
- in_memory,
- protocol_handlers,
- request_interceptors.Pass()).get();
+ partition_path, in_memory, protocol_handlers,
+ std::move(request_interceptors))
+ .get();
}
content::ResourceContext* OffTheRecordProfileImpl::GetResourceContext() {

Powered by Google App Engine
This is Rietveld 408576698