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

Unified Diff: components/data_reduction_proxy/browser/data_reduction_proxy_settings_test_utils.h

Issue 473723002: Update data reduction proxy statistics prefs less often on desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tooManyWritesPatch
Patch Set: Addressed bengr comments Created 6 years, 4 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/browser/data_reduction_proxy_settings_test_utils.h
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_settings_test_utils.h b/components/data_reduction_proxy/browser/data_reduction_proxy_settings_test_utils.h
index eb8ef0ee48e0a8390b9ea2ad87cb8655e3a68ef8..5c4cdc55e430afae441abafbf76416b359d9e29e 100644
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_settings_test_utils.h
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_settings_test_utils.h
@@ -167,6 +167,12 @@ class DataReductionProxySettingsTestBase : public testing::Test {
scoped_ptr<TestDataReductionProxyParams> expected_params_;
base::Time last_update_time_;
bool proxy_enabled_;
+#if defined(OS_ANDROID) || defined(OS_IOS)
+ base::TimeDelta commit_delay_ = base::TimeDelta();
+#else
+ base::TimeDelta commit_delay_ = base::TimeDelta::FromMinutes(60);
+#endif
+ scoped_ptr<DataReductionProxyStatisticsPrefs> statistics_prefs_;
};
// Test implementations should be subclasses of an instantiation of this

Powered by Google App Engine
This is Rietveld 408576698