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

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

Issue 2414883005: TEMP DO NOT LAND (Closed)
Patch Set: temp 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: 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 6cc3bfb22b28948c2579b19a6a2e635c32246fad..cdd0f443400f0908a59ab1f1fd1e54f737731333 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -562,6 +562,7 @@ ProfileIOData::MediaRequestContext::MediaRequestContext() {
void ProfileIOData::MediaRequestContext::SetHttpTransactionFactory(
std::unique_ptr<net::HttpTransactionFactory> http_factory) {
http_factory_ = std::move(http_factory);
+ set_name_string("media");
set_http_transaction_factory(http_factory_.get());
}
@@ -592,6 +593,7 @@ void ProfileIOData::AppRequestContext::SetHttpNetworkSession(
void ProfileIOData::AppRequestContext::SetHttpTransactionFactory(
std::unique_ptr<net::HttpTransactionFactory> http_factory) {
http_factory_ = std::move(http_factory);
+ set_name_string("app_request");
set_http_transaction_factory(http_factory_.get());
}
@@ -1028,6 +1030,8 @@ void ProfileIOData::Init(
// Create the common request contexts.
main_request_context_.reset(new net::URLRequestContext());
extensions_request_context_.reset(new net::URLRequestContext());
+ main_request_context_->set_name_string("main");
+ extensions_request_context_->set_name_string("extensions");
main_request_context_->set_enable_brotli(io_thread_globals->enable_brotli);

Powered by Google App Engine
This is Rietveld 408576698