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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc

Issue 651443005: Use no-op statistics collecting object for WebView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor2
Patch Set: Selim and Ben's comments Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc
index 564438b2bde7a8416cf86d48951b210be1b4f0ab..1347e08c38556cc8c3e1be8b899a7cd8088be373 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc
@@ -102,7 +102,7 @@ base::ListValue* DataReductionProxyStatisticsPrefs::GetList(
return list_pref_map_.get(pref_path);
}
-void DataReductionProxyStatisticsPrefs::WritePrefs() {
+void DataReductionProxyStatisticsPrefs::WriteStats() {
if (delay_ == base::TimeDelta())
return;
@@ -127,9 +127,9 @@ void DataReductionProxyStatisticsPrefs::DelayedWritePrefs() {
task_runner_->PostDelayedTask(
FROM_HERE,
- base::Bind(&DataReductionProxyStatisticsPrefs::WritePrefs,
+ base::Bind(&DataReductionProxyStatisticsPrefs::WriteStats,
weak_factory_.GetWeakPtr()),
- delay_);
+ delay_);
delayed_task_posted_ = true;
}

Powered by Google App Engine
This is Rietveld 408576698