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

Unified Diff: chrome/browser/browser_main.cc

Issue 5961008: Give user the ability to disable the URL request throttler:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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/app/generated_resources.grd ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_main.cc
===================================================================
--- chrome/browser/browser_main.cc (revision 69995)
+++ chrome/browser/browser_main.cc (working copy)
@@ -100,6 +100,7 @@
#include "net/spdy/spdy_session.h"
#include "net/spdy/spdy_session_pool.h"
#include "net/url_request/url_request.h"
+#include "net/url_request/url_request_throttler_manager.h"
#if defined(USE_LINUX_BREAKPAD)
#include "base/linux_util.h"
@@ -586,6 +587,11 @@
net::SpdySessionPool::set_max_sessions_per_domain(value);
}
+ if (parsed_command_line.HasSwitch(switches::kDisableEnforcedThrottling)) {
+ net::URLRequestThrottlerManager::GetInstance()->
+ set_enforce_throttling(false);
+ }
+
SetDnsCertProvenanceCheckerFactory(CreateChromeDnsCertProvenanceChecker);
}
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698