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

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

Issue 2525743002: Make URLRequestContext a MemoryDumpProvider (Abandoned) (Closed)
Patch Set: self review Created 4 years 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 7f94c7eff327b7a64b009e23207e98222f953b1a..970e1cdb8f4ce49869298f7c13e5bf480c1ef05f 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -560,6 +560,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());
}
@@ -590,6 +591,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());
}
@@ -1022,6 +1024,8 @@ void ProfileIOData::Init(
main_request_context_storage_.reset(
new net::URLRequestContextStorage(main_request_context_.get()));
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