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

Unified Diff: ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.mm

Issue 1888963004: Add HttpProtocolHandler and convert everything to use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-supports-scheme
Patch Set: rebase (needs fixing) Created 4 years, 2 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
Index: ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.mm
diff --git a/ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.mm b/ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.mm
index 55dbdb5fcbc8567bc559fd01a3ca844238136666..bdb164c356f34bd8cf604b108616d85fecaa0055 100644
--- a/ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.mm
+++ b/ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.mm
@@ -383,8 +383,8 @@ void ChromeBrowserStateImplIOData::InitializeInternal(
std::move(main_backend));
main_context->set_http_transaction_factory(main_http_factory_.get());
- std::unique_ptr<net::URLRequestJobFactoryImpl> main_job_factory(
- new net::URLRequestJobFactoryImpl());
+ std::unique_ptr<net::URLRequestJobFactoryImpl> main_job_factory =
+ net::URLRequestJobFactoryImpl::CreateWithHttpProtocolHandlers();
InstallProtocolHandlers(main_job_factory.get(), protocol_handlers);
// TODO(crbug.com/592012): Delete request_interceptor and its handling if
@@ -446,8 +446,8 @@ ChromeBrowserStateImplIOData::InitializeAppRequestContext(
context->SetCookieStore(std::move(cookie_store));
context->SetHttpTransactionFactory(std::move(app_http_cache));
- std::unique_ptr<net::URLRequestJobFactoryImpl> job_factory(
- new net::URLRequestJobFactoryImpl());
+ std::unique_ptr<net::URLRequestJobFactoryImpl> job_factory =
+ net::URLRequestJobFactoryImpl::CreateWithHttpProtocolHandlers();
// TODO(crbug.com/592012): Delete request_interceptor and its handling if
// it's not needed in the future.
URLRequestInterceptorScopedVector request_interceptors;

Powered by Google App Engine
This is Rietveld 408576698