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

Unified Diff: content/browser/storage_partition_impl_map.cc

Issue 2608103002: Remove ScopedVector from URLRequestInterceptorScopedVector. (Closed)
Patch Set: aw Created 3 years, 12 months 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 | « chromecast/browser/url_request_context_factory.cc ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0e85d8a6238f7fab568733139fc376d4fcbf04a0..66f51b0074be69677b5fccad45d01b13dd757973 100644
--- a/content/browser/storage_partition_impl_map.cc
+++ b/content/browser/storage_partition_impl_map.cc
@@ -14,6 +14,7 @@
#include "base/files/file_util.h"
#include "base/location.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
@@ -442,16 +443,14 @@ StoragePartitionImpl* StoragePartitionImplMap::Get(
browser_context_->IsOffTheRecord()));
URLRequestInterceptorScopedVector request_interceptors;
- request_interceptors.push_back(
- ServiceWorkerRequestHandler::CreateInterceptor(
- browser_context_->GetResourceContext()).release());
+ request_interceptors.push_back(ServiceWorkerRequestHandler::CreateInterceptor(
+ browser_context_->GetResourceContext()));
if (ForeignFetchRequestHandler::IsForeignFetchEnabled()) {
request_interceptors.push_back(
ForeignFetchRequestHandler::CreateInterceptor(
- browser_context_->GetResourceContext())
- .release());
+ browser_context_->GetResourceContext()));
}
- request_interceptors.push_back(new AppCacheInterceptor());
+ request_interceptors.push_back(base::MakeUnique<AppCacheInterceptor>());
// These calls must happen after StoragePartitionImpl::Create().
if (partition_domain.empty()) {
« no previous file with comments | « chromecast/browser/url_request_context_factory.cc ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698