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

Unified Diff: content/browser/storage_partition_impl_map.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (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: content/browser/storage_partition_impl_map.cc
diff --git a/content/browser/storage_partition_impl_map.cc b/content/browser/storage_partition_impl_map.cc
index 828a1ed197d3d6fd33fd35b8530b6daab7ebf254..05f771c47342dea1c6c050f77f4e64a31ae445b2 100644
--- a/content/browser/storage_partition_impl_map.cc
+++ b/content/browser/storage_partition_impl_map.cc
@@ -4,6 +4,8 @@
#include "content/browser/storage_partition_impl_map.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/callback.h"
#include "base/command_line.h"
@@ -463,17 +465,13 @@ StoragePartitionImpl* StoragePartitionImplMap::Get(
if (partition_domain.empty()) {
partition->SetURLRequestContext(
GetContentClient()->browser()->CreateRequestContext(
- browser_context_,
- &protocol_handlers,
- request_interceptors.Pass()));
+ browser_context_, &protocol_handlers,
+ std::move(request_interceptors)));
} else {
partition->SetURLRequestContext(
GetContentClient()->browser()->CreateRequestContextForStoragePartition(
- browser_context_,
- partition->GetPath(),
- in_memory,
- &protocol_handlers,
- request_interceptors.Pass()));
+ browser_context_, partition->GetPath(), in_memory,
+ &protocol_handlers, std::move(request_interceptors)));
}
partition->SetMediaURLRequestContext(
partition_domain.empty() ?
« no previous file with comments | « content/browser/ssl/ssl_client_auth_handler.cc ('k') | content/browser/storage_partition_impl_map_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698