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

Side by Side Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.cc

Issue 2293583002: Change includes of histogram.h to histogram_macros.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/data_reduction_proxy/core/browser/data_reduction_proxy_ping back_client.h" 5 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_ping back_client.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram_macros.h"
8 #include "base/optional.h" 8 #include "base/optional.h"
9 #include "base/rand_util.h" 9 #include "base/rand_util.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_data .h" 11 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_data .h"
12 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_page_ load_timing.h" 12 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_page_ load_timing.h"
13 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h" 13 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h"
14 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_util. h" 14 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_util. h"
15 #include "components/data_reduction_proxy/proto/client_config.pb.h" 15 #include "components/data_reduction_proxy/proto/client_config.pb.h"
16 #include "net/base/load_flags.h" 16 #include "net/base/load_flags.h"
17 #include "net/nqe/effective_connection_type.h" 17 #include "net/nqe/effective_connection_type.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 void DataReductionProxyPingbackClient::SetPingbackReportingFraction( 157 void DataReductionProxyPingbackClient::SetPingbackReportingFraction(
158 float pingback_reporting_fraction) { 158 float pingback_reporting_fraction) {
159 DCHECK(thread_checker_.CalledOnValidThread()); 159 DCHECK(thread_checker_.CalledOnValidThread());
160 DCHECK_LE(0.0f, pingback_reporting_fraction); 160 DCHECK_LE(0.0f, pingback_reporting_fraction);
161 DCHECK_GE(1.0f, pingback_reporting_fraction); 161 DCHECK_GE(1.0f, pingback_reporting_fraction);
162 pingback_reporting_fraction_ = pingback_reporting_fraction; 162 pingback_reporting_fraction_ = pingback_reporting_fraction;
163 } 163 }
164 164
165 } // namespace data_reduction_proxy 165 } // namespace data_reduction_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698