diff options
author | stevet@chromium.org <stevet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-24 20:34:02 +0000 |
---|---|---|
committer | stevet@chromium.org <stevet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-24 20:34:02 +0000 |
commit | e6d8e990c4b26bcbfa47c405fbc06ce7f4010c48 (patch) | |
tree | 531f0d9686bf6c8b3284af28dbe06e9bd6abfdb2 /net | |
parent | 0f1fa4b8d90cea746d60f248c23c4b51fb1ee86e (diff) | |
download | chromium_src-e6d8e990c4b26bcbfa47c405fbc06ce7f4010c48.zip chromium_src-e6d8e990c4b26bcbfa47c405fbc06ce7f4010c48.tar.gz chromium_src-e6d8e990c4b26bcbfa47c405fbc06ce7f4010c48.tar.bz2 |
Remove the SpdyCwnd FieldTrial and histograms.
BUG=229940
Review URL: https://chromiumcodereview.appspot.com/14100008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196221 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/spdy/spdy_session.cc | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc index 9aee625..04c186e 100644 --- a/net/spdy/spdy_session.cc +++ b/net/spdy/spdy_session.cc @@ -1892,28 +1892,6 @@ void SpdySession::SendStreamWindowUpdate(SpdyStreamId stream_id, SendWindowUpdateFrame(stream_id, delta_window_size, stream->priority()); } -// Given a cwnd that we would have sent to the server, modify it based on the -// field trial policy. -uint32 ApplyCwndFieldTrialPolicy(int cwnd) { - base::FieldTrial* trial = base::FieldTrialList::Find("SpdyCwnd"); - if (!trial) { - LOG(WARNING) << "Could not find \"SpdyCwnd\" in FieldTrialList"; - return cwnd; - } - if (trial->group_name() == "cwnd10") - return 10; - else if (trial->group_name() == "cwnd16") - return 16; - else if (trial->group_name() == "cwndMin16") - return std::max(cwnd, 16); - else if (trial->group_name() == "cwndMin10") - return std::max(cwnd, 10); - else if (trial->group_name() == "cwndDynamic") - return cwnd; - NOTREACHED(); - return cwnd; -} - void SpdySession::SendInitialSettings() { // First notify the server about the settings they should use when // communicating with us. @@ -1939,18 +1917,12 @@ void SpdySession::SendInitialSettings() { if (settings_map.empty()) return; - // Record Histogram Data and Apply the SpdyCwnd FieldTrial if applicable. const SpdySettingsIds id = SETTINGS_CURRENT_CWND; SettingsMap::const_iterator it = settings_map.find(id); uint32 value = 0; if (it != settings_map.end()) value = it->second.second; - uint32 cwnd = ApplyCwndFieldTrialPolicy(value); - UMA_HISTOGRAM_CUSTOM_COUNTS("Net.SpdySettingsCwndSent", cwnd, 1, 200, 100); - if (cwnd != value) { - http_server_properties_->SetSpdySetting( - host_port_pair(), id, SETTINGS_FLAG_PLEASE_PERSIST, cwnd); - } + UMA_HISTOGRAM_CUSTOM_COUNTS("Net.SpdySettingsCwndSent", value, 1, 200, 100); const SettingsMap& settings_map_new = http_server_properties_->GetSpdySettings(host_port_pair()); |