Update data reduction proxy statistics prefs less often on desktop
commit53f608b55172df7423ea54ab83e9fdfa8fc81f9a
authormegjablon <megjablon@chromium.org>
Thu, 18 Sep 2014 19:24:55 +0000 (18 12:24 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 18 Sep 2014 19:25:10 +0000 (18 19:25 +0000)
tree3d3ca8cb07417885f70e231a105367503625b041
parentc00cf03b98395a5ba349e5fd6be7c63498ef6a71
Update data reduction proxy statistics prefs less often on desktop

For platforms other than iOS and Android, the preference data is stored in
memory and written to disk at 60
minute intervals and on shutdown via the DataReductionProxyDelayedPrefService.

For iOS and Android, the DataReductionProxyDelayedPrefService takes a delay time
of zero and simply passes the prefs through to the PrefService.

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

Cr-Commit-Position: refs/heads/master@{#295521}
25 files changed:
android_webview/browser/aw_browser_context.cc
android_webview/browser/net/aw_url_request_context_getter.cc
chrome/browser/net/chrome_network_delegate.cc
chrome/browser/net/chrome_network_delegate.h
chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc
chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest_android.cc
chrome/browser/profiles/profile_impl.cc
chrome/browser/profiles/profile_impl_io_data.cc
chrome/browser/profiles/profile_impl_io_data.h
chrome/test/data/webui/net_internals/bandwidth_view.js
components/components_tests.gyp
components/data_reduction_proxy.gypi
components/data_reduction_proxy/browser/BUILD.gn
components/data_reduction_proxy/browser/data_reduction_proxy_metrics.cc
components/data_reduction_proxy/browser/data_reduction_proxy_metrics.h
components/data_reduction_proxy/browser/data_reduction_proxy_metrics_unittest.cc
components/data_reduction_proxy/browser/data_reduction_proxy_prefs.cc
components/data_reduction_proxy/browser/data_reduction_proxy_settings.cc
components/data_reduction_proxy/browser/data_reduction_proxy_settings.h
components/data_reduction_proxy/browser/data_reduction_proxy_settings_test_utils.cc
components/data_reduction_proxy/browser/data_reduction_proxy_settings_test_utils.h
components/data_reduction_proxy/browser/data_reduction_proxy_settings_unittest.cc
components/data_reduction_proxy/browser/data_reduction_proxy_statistics_prefs.cc [new file with mode: 0644]
components/data_reduction_proxy/browser/data_reduction_proxy_statistics_prefs.h [new file with mode: 0644]
components/data_reduction_proxy/browser/data_reduction_proxy_statistics_prefs_unittest.cc [new file with mode: 0644]