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

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

Issue 2660983002: Change ProfileIOData::CreateHttpFactory to take an (Closed)
Patch Set: rebase after upstream landed 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
Index: chrome/browser/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index 0e6c1cc2df246cc292013f4d6ad76c486d39444e..40ede501295749dfdfa7d6317f3407465d5ee460 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -1308,8 +1308,10 @@ std::unique_ptr<net::HttpCache> ProfileIOData::CreateMainHttpFactory(
}
std::unique_ptr<net::HttpCache> ProfileIOData::CreateHttpFactory(
- net::HttpNetworkSession* shared_session,
+ net::HttpTransactionFactory* main_http_factory,
std::unique_ptr<net::HttpCache::BackendFactory> backend) const {
+ DCHECK(main_http_factory);
+ net::HttpNetworkSession* shared_session = main_http_factory->GetSession();
return base::MakeUnique<net::HttpCache>(
base::WrapUnique(new DevToolsNetworkTransactionFactory(
network_controller_handle_.GetController(), shared_session)),

Powered by Google App Engine
This is Rietveld 408576698