Preference to control data usage stats collection.
commite39e05a22a7ab7a21045feddc4ea449647eeb215
authorkundaji <kundaji@chromium.org>
Tue, 25 Aug 2015 19:28:57 +0000 (25 12:28 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 25 Aug 2015 19:29:27 +0000 (25 19:29 +0000)
tree8fcd88eed7e57bee71a536681e4204fce8ec81f6
parentb2a31d337b0986b018884f1617418f6e4c88e1ba
Preference to control data usage stats collection.

Adds a boolean non-syncable "data_usage_reporting.enabled" preference.
Load and maintain data usage stats in memory only if preference
is enabled. If preference is disabled, flush stats to storage
and clear all in memory stats.

BUG=482442

Review URL: https://codereview.chromium.org/1309103003

Cr-Commit-Position: refs/heads/master@{#345408}
components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc
components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h
components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc
components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.cc
components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h