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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 10834215: Remove static variables from HttpStreamFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: typo Created 8 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/io_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 316066724b3dc90a8e5131cc397983c7ad58a836..62917f7b9a3f99a3cb9f82c3569516157e77c214 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -208,13 +208,6 @@ void InitializeNetworkOptions(const CommandLine& parsed_command_line) {
net::CookieMonster::EnableFileScheme();
}
- if (parsed_command_line.HasSwitch(switches::kIgnoreCertificateErrors))
- net::HttpStreamFactory::set_ignore_certificate_errors(true);
-
- if (parsed_command_line.HasSwitch(switches::kHostRules))
- net::HttpStreamFactory::SetHostMappingRules(
- parsed_command_line.GetSwitchValueASCII(switches::kHostRules));
-
if (parsed_command_line.HasSwitch(switches::kEnableIPPooling))
net::SpdySessionPool::enable_ip_pooling(true);
@@ -238,27 +231,6 @@ void InitializeNetworkOptions(const CommandLine& parsed_command_line) {
net::WebSocketJob::set_websocket_over_spdy_enabled(true);
}
- if (parsed_command_line.HasSwitch(switches::kEnableHttpPipelining))
- net::HttpStreamFactory::set_http_pipelining_enabled(true);
-
- if (parsed_command_line.HasSwitch(switches::kTestingFixedHttpPort)) {
- int value;
- base::StringToInt(
- parsed_command_line.GetSwitchValueASCII(
- switches::kTestingFixedHttpPort),
- &value);
- net::HttpStreamFactory::set_testing_fixed_http_port(value);
- }
-
- if (parsed_command_line.HasSwitch(switches::kTestingFixedHttpsPort)) {
- int value;
- base::StringToInt(
- parsed_command_line.GetSwitchValueASCII(
- switches::kTestingFixedHttpsPort),
- &value);
- net::HttpStreamFactory::set_testing_fixed_https_port(value);
- }
-
bool used_spdy_switch = false;
if (parsed_command_line.HasSwitch(switches::kUseSpdy)) {
std::string spdy_mode =
« no previous file with comments | « no previous file | chrome/browser/io_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698