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

Unified Diff: chrome/browser/profiles/profile_impl_io_data.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 | « blimp/engine/app/blimp_url_request_context_getter.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index 95dd07c332f41deceeff51f3501f282773b07d4c..52d667812aec782106d4e683103e6da47b09047c 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -550,16 +550,16 @@ void ProfileImplIOData::InitializeInternal(
// Install the Offline Page Interceptor.
#if defined(OS_ANDROID)
- request_interceptors.push_back(std::unique_ptr<net::URLRequestInterceptor>(
- new offline_pages::OfflinePageRequestInterceptor(
- previews_io_data_.get())));
+ request_interceptors.push_back(
+ base::MakeUnique<offline_pages::OfflinePageRequestInterceptor>(
+ previews_io_data_.get()));
#endif
// The data reduction proxy interceptor should be as close to the network
// as possible.
request_interceptors.insert(
request_interceptors.begin(),
- data_reduction_proxy_io_data()->CreateInterceptor().release());
+ data_reduction_proxy_io_data()->CreateInterceptor());
main_context_storage->set_job_factory(SetUpJobFactoryDefaults(
std::move(main_job_factory), std::move(request_interceptors),
std::move(profile_params->protocol_handler_interceptor),
@@ -713,7 +713,7 @@ net::URLRequestContext* ProfileImplIOData::InitializeAppRequestContext(
// as possible.
request_interceptors.insert(
request_interceptors.begin(),
- data_reduction_proxy_io_data()->CreateInterceptor().release());
+ data_reduction_proxy_io_data()->CreateInterceptor());
std::unique_ptr<net::URLRequestJobFactory> top_job_factory(
SetUpJobFactoryDefaults(
« no previous file with comments | « blimp/engine/app/blimp_url_request_context_getter.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698