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

Unified Diff: chrome/browser/io_thread.cc

Issue 689923002: Add Spdy4Experiment group. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_unittest.cc » ('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 b84a24ba1b0c41e2546763f887f4ef6dba0efed9..77e878dc15f751783e1f770475e6a5be78d6d7fc 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -134,6 +134,7 @@ const char kSpdyFieldTrialName[] = "SPDY";
const char kSpdyFieldTrialHoldbackGroupName[] = "SpdyDisabled";
const char kSpdyFieldTrialHoldbackControlGroupName[] = "Control";
const char kSpdyFieldTrialSpdy4GroupName[] = "Spdy4Enabled";
+const char kSpdyFieldTrialSpdy4ExperimentGroupName[] = "Spdy4Experiment";
const char kSpdyFieldTrialSpdy4ControlGroupName[] = "Spdy4Control";
// Field trial for Cache-Control: stale-while-revalidate directive.
@@ -844,6 +845,9 @@ void IOThread::ConfigureSpdyFromTrial(const std::string& spdy_trial_group,
} else if (spdy_trial_group == kSpdyFieldTrialSpdy4GroupName) {
Ryan Hamilton 2014/10/30 17:34:32 We've been doing a lot of finch config work with Q
Bence 2014/10/30 18:39:03 This is a great idea. I am extenting this to Spdy
globals->next_protos = net::NextProtosSpdy4Http2();
globals->use_alternate_protocols.set(true);
+ } else if (spdy_trial_group == kSpdyFieldTrialSpdy4ExperimentGroupName) {
+ globals->next_protos = net::NextProtosSpdy4Http2();
+ globals->use_alternate_protocols.set(true);
} else if (spdy_trial_group == kSpdyFieldTrialSpdy4ControlGroupName) {
// This control group is pinned at SPDY/3.1.
globals->next_protos = net::NextProtosSpdy31();
« no previous file with comments | « no previous file | chrome/browser/io_thread_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698