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

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

Issue 2536723009: Make net::URLRequestContext a MemoryDumpProvider (Closed)
Patch Set: fix compile 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
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | chrome/browser/safe_browsing/safe_browsing_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1520bd36f538cdc5c153750838d3d7a770b1f5d9 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -554,7 +554,9 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) {
BrowserContext::EnsureResourceContextInitialized(profile);
}
-ProfileIOData::MediaRequestContext::MediaRequestContext() {
+ProfileIOData::MediaRequestContext::MediaRequestContext(
+ const std::string& name) {
+ set_name(name);
}
void ProfileIOData::MediaRequestContext::SetHttpTransactionFactory(
@@ -568,6 +570,7 @@ ProfileIOData::MediaRequestContext::~MediaRequestContext() {
}
ProfileIOData::AppRequestContext::AppRequestContext() {
+ set_name("app_request");
}
void ProfileIOData::AppRequestContext::SetCookieStore(
@@ -1022,6 +1025,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("main");
+ extensions_request_context_->set_name("extensions");
main_request_context_->set_enable_brotli(io_thread_globals->enable_brotli);
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | chrome/browser/safe_browsing/safe_browsing_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698