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

Unified Diff: chrome/service/net/service_url_request_context.cc

Issue 10203002: Make URLRequestThrottlerManager a member of URLRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge LKGR (pure merge) 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/service/net/service_url_request_context.cc
diff --git a/chrome/service/net/service_url_request_context.cc b/chrome/service/net/service_url_request_context.cc
index 4fb23854ce66ee15c883a433ef9f5e274492c251..955d9d4c05ce0e47350f619787cfb33c5482c76c 100644
--- a/chrome/service/net/service_url_request_context.cc
+++ b/chrome/service/net/service_url_request_context.cc
@@ -25,6 +25,7 @@
#include "net/http/http_server_properties_impl.h"
#include "net/proxy/proxy_config_service.h"
#include "net/proxy/proxy_service.h"
+#include "net/url_request/url_request_throttler_manager.h"
namespace {
// Copied from webkit/glue/user_agent.cc. We don't want to pull in a dependency
@@ -122,6 +123,7 @@ ServiceURLRequestContext::ServiceURLRequestContext(
storage_.set_http_auth_handler_factory(
net::HttpAuthHandlerFactory::CreateDefault(host_resolver()));
storage_.set_http_server_properties(new net::HttpServerPropertiesImpl);
+ storage_.set_throttler_manager(new net::URLRequestThrottlerManager);
net::HttpNetworkSession::Params session_params;
session_params.host_resolver = host_resolver();

Powered by Google App Engine
This is Rietveld 408576698