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

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

Issue 2660983002: Change ProfileIOData::CreateHttpFactory to take an (Closed)
Patch Set: Get HttpTransactionFactory from URLRequestContext directly Created 3 years, 11 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 | « no previous file | chrome/browser/profiles/profile_io_data.h » ('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 1ed4fe128bde126dcbc038e42c15a2baf159324e..2701c77e4b22621932b9a66c9ea67cbd105b9774 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -757,9 +757,9 @@ net::URLRequestContext* ProfileImplIOData::InitializeMediaRequestContext(
net::MEDIA_CACHE, ChooseCacheBackendType(), cache_path,
cache_max_size,
BrowserThread::GetTaskRunnerForThread(BrowserThread::CACHE)));
- std::unique_ptr<net::HttpCache> media_http_cache =
- CreateHttpFactory(main_request_context_storage()->http_network_session(),
- std::move(media_backend));
+ std::unique_ptr<net::HttpCache> media_http_cache = CreateHttpFactory(
+ main_request_context()->http_transaction_factory(),
+ std::move(media_backend));
// Transfer ownership of the cache to MediaRequestContext.
context->SetHttpTransactionFactory(std::move(media_http_cache));
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698