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

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: Apply network settings to jingle Created 8 years, 4 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') | chrome/browser/profiles/profile_impl_io_data.cc » ('J')
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 f96fef1c2ec4c5ba93adf8e4bca57df4a2a85c9b..5083003107dc2a0d510d3dad2a23f08aeff5e95f 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -207,13 +207,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);
@@ -233,27 +226,6 @@ void InitializeNetworkOptions(const CommandLine& parsed_command_line) {
// Enable WebSocket over SPDY.
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);
- }
}
// Returns the new local state object, guaranteed non-NULL.
« no previous file with comments | « no previous file | chrome/browser/io_thread.h » ('j') | chrome/browser/profiles/profile_impl_io_data.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698