| Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc
|
| diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc
|
| index af0932b0c25b00dcccf86e472c074386b5a0bbe8..5c1423b1f561076a8d739a9a9b605c0a6e901bbe 100644
|
| --- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc
|
| +++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc
|
| @@ -466,11 +466,12 @@ void UpdateContentLengthPrefsForDataReductionProxy(
|
| }
|
| }
|
|
|
| -void UpdateContentLengthPrefs(int received_content_length,
|
| - int original_content_length,
|
| - PrefService* profile_prefs,
|
| - DataReductionProxyRequestType request_type,
|
| - DataReductionProxyStatisticsPrefs* prefs) {
|
| +void UpdateContentLengthPrefs(
|
| + int received_content_length,
|
| + int original_content_length,
|
| + bool data_reduction_proxy_enabled,
|
| + DataReductionProxyRequestType request_type,
|
| + DataReductionProxyStatisticsPrefs* prefs) {
|
| int64 total_received = prefs->GetInt64(
|
| data_reduction_proxy::prefs::kHttpReceivedContentLength);
|
| int64 total_original = prefs->GetInt64(
|
| @@ -484,13 +485,10 @@ void UpdateContentLengthPrefs(int received_content_length,
|
| data_reduction_proxy::prefs::kHttpOriginalContentLength,
|
| total_original);
|
|
|
| - bool with_data_reduction_proxy_enabled =
|
| - profile_prefs->GetBoolean(
|
| - data_reduction_proxy::prefs::kDataReductionProxyEnabled);
|
| UpdateContentLengthPrefsForDataReductionProxy(
|
| received_content_length,
|
| original_content_length,
|
| - with_data_reduction_proxy_enabled,
|
| + data_reduction_proxy_enabled,
|
| request_type,
|
| base::Time::Now(),
|
| prefs);
|
|
|