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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 9766021: SPDY - Added enabling of SPDY/3 to about:flags. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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/chrome_browser_main.cc
===================================================================
--- chrome/browser/chrome_browser_main.cc (revision 127896)
+++ chrome/browser/chrome_browser_main.cc (working copy)
@@ -267,6 +267,15 @@
if (parsed_command_line.HasSwitch(switches::kEnableHttpPipelining))
net::HttpStreamFactory::set_http_pipelining_enabled(true);
+ if (parsed_command_line.HasSwitch(switches::kEnableSPDY3)) {
willchan no longer on Chromium 2012/03/21 16:15:32 How does this command line flag interact with the
ramant (doing other things) 2012/03/21 18:46:36 If --use-sdy=off, then enable-spdy3 is ignored. C
willchan no longer on Chromium 2012/03/21 23:01:55 What about --use-spdy=v3? or --use-spdy=flow-contr
+ std::vector<std::string> next_protos;
+ next_protos.push_back("http/1.1");
+ next_protos.push_back("spdy/2");
+ next_protos.push_back("spdy/2.1");
+ next_protos.push_back("spdy/3");
+ net::HttpStreamFactory::SetNextProtos(next_protos);
+ }
+
if (parsed_command_line.HasSwitch(switches::kTestingFixedHttpPort)) {
int value;
base::StringToInt(

Powered by Google App Engine
This is Rietveld 408576698