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

Unified Diff: chrome/browser/io_thread.cc

Issue 71383002: [SPDY] Reenable SPDY/2 for M32 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 years, 1 month 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/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index d72cefcc0e90ece0987c7a9fde7e1f3d488e97ae..42645ea3425335a2a1c92fa9ffd74865e39603d0 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -733,8 +733,8 @@ void IOThread::InitializeNetworkOptions(const CommandLine& command_line) {
net::HttpStreamFactory::EnableNpnSpdy4a2();
} else if (command_line.HasSwitch(switches::kDisableSpdy31)) {
net::HttpStreamFactory::EnableNpnSpdy3();
- } else if (command_line.HasSwitch(switches::kEnableSpdy2)) {
- net::HttpStreamFactory::EnableNpnSpdy31WithSpdy2();
+ } else if (command_line.HasSwitch(switches::kDisableSpdy2)) {
+ net::HttpStreamFactory::EnableNpnSpdy31();
} else if (command_line.HasSwitch(switches::kEnableNpnHttpOnly)) {
net::HttpStreamFactory::EnableNpnHttpOnly();
} else {
@@ -743,7 +743,10 @@ void IOThread::InitializeNetworkOptions(const CommandLine& command_line) {
net::HttpStreamFactory::set_spdy_enabled(false);
} else {
// Use SPDY/3.1 by default.
- net::HttpStreamFactory::EnableNpnSpdy31();
+ //
+ // TODO(akalin): Turn off SPDY/2 by default
+ // (http://crbug.com/318651).
+ net::HttpStreamFactory::EnableNpnSpdy31WithSpdy2();
}
}
}
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698