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/net/connection_tester.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/browser/net/connection_tester.cc
diff --git a/chrome/browser/net/connection_tester.cc b/chrome/browser/net/connection_tester.cc
index 453c901d55d31d33bbd1d69cf32cf0beb2da169d..d4c9efe08bed7694e31c17f9abb57fadb3d225bb 100644
--- a/chrome/browser/net/connection_tester.cc
+++ b/chrome/browser/net/connection_tester.cc
@@ -32,6 +32,7 @@
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_context_storage.h"
+#include "net/url_request/url_request_throttler_manager.h"
#if !defined(OS_ANDROID)
#include "chrome/browser/importer/firefox_proxy_settings.h"
@@ -79,6 +80,7 @@ class ExperimentURLRequestContext : public net::URLRequestContext {
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