diff options
Diffstat (limited to 'net/socket/client_socket_pool_histograms.cc')
-rw-r--r-- | net/socket/client_socket_pool_histograms.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/net/socket/client_socket_pool_histograms.cc b/net/socket/client_socket_pool_histograms.cc index 202112b..5c3bddb 100644 --- a/net/socket/client_socket_pool_histograms.cc +++ b/net/socket/client_socket_pool_histograms.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -58,10 +58,8 @@ void ClientSocketPoolHistograms::AddSocketType(int type) const { void ClientSocketPoolHistograms::AddRequestTime(base::TimeDelta time) const { request_time_->AddTime(time); - static bool proxy_connection_impact_trial_exists( - base::FieldTrialList::Find("ProxyConnectionImpact") && - !base::FieldTrialList::Find("ProxyConnectionImpact")-> - group_name().empty()); + static const bool proxy_connection_impact_trial_exists = + base::FieldTrialList::TrialExists("ProxyConnectionImpact"); if (proxy_connection_impact_trial_exists && is_http_proxy_connection_) { UMA_HISTOGRAM_CUSTOM_TIMES( base::FieldTrial::MakeName("Net.HttpProxySocketRequestTime", |