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

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

Issue 10203002: Make URLRequestThrottlerManager a member of URLRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make throttler_manager() optional. Created 8 years, 8 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/off_the_record_profile_io_data.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_io_data.cc b/chrome/browser/profiles/off_the_record_profile_io_data.cc
index d066e9288a36041091bf3a43e56be4aefa1b8977..7d0af1dbf372a1b68d40e72e6daebc54195623cb 100644
--- a/chrome/browser/profiles/off_the_record_profile_io_data.cc
+++ b/chrome/browser/profiles/off_the_record_profile_io_data.cc
@@ -182,6 +182,11 @@ void OffTheRecordProfileIOData::LazyInitializeInternal(
fraudulent_certificate_reporter());
main_context->set_proxy_service(proxy_service());
+ main_context->set_throttler_manager(
+ io_thread_globals->throttler_manager.get());
+ extensions_context->set_throttler_manager(
+ io_thread_globals->throttler_manager.get());
+
// For incognito, we use the default non-persistent HttpServerPropertiesImpl.
http_server_properties_.reset(new net::HttpServerPropertiesImpl);
main_context->set_http_server_properties(http_server_properties_.get());

Powered by Google App Engine
This is Rietveld 408576698