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

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

Issue 10203002: Make URLRequestThrottlerManager a member of URLRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review. 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/profile_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index f439146b3df176910d4f0f5bdc7206a5b3db837f..e9bc8aef89985e5178c9dc72fd3c4a1f26d9403b 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -29,6 +29,7 @@
#include "net/ftp/ftp_network_layer.h"
#include "net/http/http_cache.h"
#include "net/url_request/url_request_job_factory.h"
+#include "net/url_request/url_request_throttler_manager.h"
using content::BrowserThread;
@@ -308,6 +309,13 @@ void ProfileImplIOData::LazyInitializeInternal(
media_request_context_->set_fraudulent_certificate_reporter(
fraudulent_certificate_reporter());
+ main_context->set_throttler_manager(
+ io_thread_globals->throttler_manager.get());
+ media_request_context_->set_throttler_manager(
+ io_thread_globals->throttler_manager.get());
+ extensions_context->set_throttler_manager(
+ io_thread_globals->throttler_manager.get());
+
main_context->set_proxy_service(proxy_service());
media_request_context_->set_proxy_service(proxy_service());

Powered by Google App Engine
This is Rietveld 408576698