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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 11416058: Integrating the QuicStreamFactory into the network stack. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Done Created 8 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') | net/http/http_network_layer.h » ('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 11a7b79a8aed02b0d218a3a4cd8e7f7bde131032..1bacc6bd7fc70e8af15cf432bd507707eed650d2 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -278,6 +278,12 @@ void InitializeNetworkOptions(const CommandLine& parsed_command_line,
if (!used_spdy_switch) {
net::HttpStreamFactory::EnableNpnSpdy3();
}
+
+ if (parsed_command_line.HasSwitch(switches::kForceQuicPort)) {
+ std::string quic_port =
+ parsed_command_line.GetSwitchValueASCII(switches::kForceQuicPort);
+ net::HttpNetworkLayer::EnableQuic(quic_port);
+ }
}
// Returns the new local state object, guaranteed non-NULL.
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | net/http/http_network_layer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698