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

Side by Side Diff: net/http/http_network_transaction.cc

Issue 11228007: Remove the ConnCountImpact FieldTrial code. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/http/http_network_transaction.h" 5 #include "net/http/http_network_transaction.h"
6 6
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10), 1031 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10),
1032 100); 1032 100);
1033 1033
1034 bool reused_socket = stream_->IsConnectionReused(); 1034 bool reused_socket = stream_->IsConnectionReused();
1035 if (!reused_socket) { 1035 if (!reused_socket) {
1036 UMA_HISTOGRAM_CUSTOM_TIMES( 1036 UMA_HISTOGRAM_CUSTOM_TIMES(
1037 "Net.Transaction_Connected_New_b", 1037 "Net.Transaction_Connected_New_b",
1038 total_duration, 1038 total_duration,
1039 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10), 1039 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10),
1040 100); 1040 100);
1041
1042 static const bool use_conn_impact_histogram =
1043 base::FieldTrialList::TrialExists("ConnCountImpact");
1044 if (use_conn_impact_histogram) {
1045 UMA_HISTOGRAM_CUSTOM_TIMES(
1046 base::FieldTrial::MakeName("Net.Transaction_Connected_New_b",
1047 "ConnCountImpact"),
1048 total_duration,
1049 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10),
1050 100);
1051 }
1052 } 1041 }
1053 1042
1054 static const bool use_spdy_histogram = 1043 static const bool use_spdy_histogram =
1055 base::FieldTrialList::TrialExists("SpdyImpact"); 1044 base::FieldTrialList::TrialExists("SpdyImpact");
1056 if (use_spdy_histogram && response_.was_npn_negotiated) { 1045 if (use_spdy_histogram && response_.was_npn_negotiated) {
1057 UMA_HISTOGRAM_CUSTOM_TIMES( 1046 UMA_HISTOGRAM_CUSTOM_TIMES(
1058 base::FieldTrial::MakeName("Net.Transaction_Connected", 1047 base::FieldTrial::MakeName("Net.Transaction_Connected",
1059 "SpdyImpact"), 1048 "SpdyImpact"),
1060 total_duration, base::TimeDelta::FromMilliseconds(1), 1049 total_duration, base::TimeDelta::FromMilliseconds(1),
1061 base::TimeDelta::FromMinutes(10), 100); 1050 base::TimeDelta::FromMinutes(10), 100);
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
1449 description = base::StringPrintf("Unknown state 0x%08X (%u)", state, 1438 description = base::StringPrintf("Unknown state 0x%08X (%u)", state,
1450 state); 1439 state);
1451 break; 1440 break;
1452 } 1441 }
1453 return description; 1442 return description;
1454 } 1443 }
1455 1444
1456 #undef STATE_CASE 1445 #undef STATE_CASE
1457 1446
1458 } // namespace net 1447 } // namespace net
OLDNEW
« chrome/browser/chrome_browser_field_trials.cc ('K') | « chrome/renderer/page_load_histograms.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698