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

Side by Side Diff: net/socket/ssl_client_socket_pool.cc

Issue 6931048: Revert 84197 - Add one-time randomization support for FieldTrial, and the ability to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « net/socket/client_socket_pool_histograms.cc ('k') | net/socket/stream_socket.cc » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/socket/ssl_client_socket_pool.h" 5 #include "net/socket/ssl_client_socket_pool.h"
6 6
7 #include "base/metrics/field_trial.h" 7 #include "base/metrics/field_trial.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 bool is_google = host == "google.com" || 340 bool is_google = host == "google.com" ||
341 host.rfind(".google.com") == host.size() - 11; 341 host.rfind(".google.com") == host.size() - 11;
342 if (is_google) { 342 if (is_google) {
343 UMA_HISTOGRAM_CUSTOM_TIMES("Net.SSL_Connection_Latency_Google", 343 UMA_HISTOGRAM_CUSTOM_TIMES("Net.SSL_Connection_Latency_Google",
344 connect_duration, 344 connect_duration,
345 base::TimeDelta::FromMilliseconds(1), 345 base::TimeDelta::FromMilliseconds(1),
346 base::TimeDelta::FromMinutes(10), 346 base::TimeDelta::FromMinutes(10),
347 100); 347 100);
348 } 348 }
349 349
350 static const bool false_start_trial = 350 static bool false_start_trial(
351 base::FieldTrialList::TrialExists("SSLFalseStart"); 351 base::FieldTrialList::Find("SSLFalseStart") &&
352 !base::FieldTrialList::Find("SSLFalseStart")->group_name().empty());
352 if (false_start_trial) { 353 if (false_start_trial) {
353 UMA_HISTOGRAM_CUSTOM_TIMES(base::FieldTrial::MakeName( 354 UMA_HISTOGRAM_CUSTOM_TIMES(base::FieldTrial::MakeName(
354 "Net.SSL_Connection_Latency", 355 "Net.SSL_Connection_Latency",
355 "SSLFalseStart"), 356 "SSLFalseStart"),
356 connect_duration, 357 connect_duration,
357 base::TimeDelta::FromMilliseconds(1), 358 base::TimeDelta::FromMilliseconds(1),
358 base::TimeDelta::FromMinutes(10), 359 base::TimeDelta::FromMinutes(10),
359 100); 360 100);
360 } 361 }
361 } 362 }
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 573
573 ClientSocketPoolHistograms* SSLClientSocketPool::histograms() const { 574 ClientSocketPoolHistograms* SSLClientSocketPool::histograms() const {
574 return base_.histograms(); 575 return base_.histograms();
575 } 576 }
576 577
577 void SSLClientSocketPool::OnSSLConfigChanged() { 578 void SSLClientSocketPool::OnSSLConfigChanged() {
578 Flush(); 579 Flush();
579 } 580 }
580 581
581 } // namespace net 582 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/client_socket_pool_histograms.cc ('k') | net/socket/stream_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698