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

Side by Side Diff: net/url_request/url_request_http_job.cc

Issue 13993007: Remove the remnants of the WarmSocketImpact field trial. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 8 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
« no previous file with comments | « net/http/http_network_transaction.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/url_request/url_request_http_job.h" 5 #include "net/url_request/url_request_http_job.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after
1282 1282
1283 static const bool use_overlapped_read_histogram = 1283 static const bool use_overlapped_read_histogram =
1284 base::FieldTrialList::TrialExists("OverlappedReadImpact"); 1284 base::FieldTrialList::TrialExists("OverlappedReadImpact");
1285 if (use_overlapped_read_histogram) { 1285 if (use_overlapped_read_histogram) {
1286 UMA_HISTOGRAM_MEDIUM_TIMES( 1286 UMA_HISTOGRAM_MEDIUM_TIMES(
1287 base::FieldTrial::MakeName("Net.HttpTimeToFirstByte", 1287 base::FieldTrial::MakeName("Net.HttpTimeToFirstByte",
1288 "OverlappedReadImpact"), 1288 "OverlappedReadImpact"),
1289 to_start); 1289 to_start);
1290 } 1290 }
1291 1291
1292 static const bool use_warm_socket_impact_histogram =
1293 base::FieldTrialList::TrialExists("WarmSocketImpact");
1294 if (use_warm_socket_impact_histogram) {
1295 UMA_HISTOGRAM_MEDIUM_TIMES(
1296 base::FieldTrial::MakeName("Net.HttpTimeToFirstByte",
1297 "WarmSocketImpact"),
1298 to_start);
1299 }
1300
1301 static const bool use_prefetch_histogram = 1292 static const bool use_prefetch_histogram =
1302 base::FieldTrialList::TrialExists("Prefetch"); 1293 base::FieldTrialList::TrialExists("Prefetch");
1303 if (use_prefetch_histogram) { 1294 if (use_prefetch_histogram) {
1304 UMA_HISTOGRAM_MEDIUM_TIMES( 1295 UMA_HISTOGRAM_MEDIUM_TIMES(
1305 base::FieldTrial::MakeName("Net.HttpTimeToFirstByte", 1296 base::FieldTrial::MakeName("Net.HttpTimeToFirstByte",
1306 "Prefetch"), 1297 "Prefetch"),
1307 to_start); 1298 to_start);
1308 } 1299 }
1309 static const bool use_prerender_histogram = 1300 static const bool use_prerender_histogram =
1310 base::FieldTrialList::TrialExists("Prerender"); 1301 base::FieldTrialList::TrialExists("Prerender");
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 1567
1577 void URLRequestHttpJob::NotifyURLRequestDestroyed() { 1568 void URLRequestHttpJob::NotifyURLRequestDestroyed() {
1578 awaiting_callback_ = false; 1569 awaiting_callback_ = false;
1579 } 1570 }
1580 1571
1581 void URLRequestHttpJob::OnDetachRequest() { 1572 void URLRequestHttpJob::OnDetachRequest() {
1582 http_transaction_delegate_->OnDetachRequest(); 1573 http_transaction_delegate_->OnDetachRequest();
1583 } 1574 }
1584 1575
1585 } // namespace net 1576 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_transaction.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698