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

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

Issue 2808853004: DRP compression stats should only be removed on Android (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc
index 651d1778bdd4c84a604eff9fd8ed1f3f9beba53e..bbfef499026a3c0eac67df9e67be698c156dd30a 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc
@@ -370,12 +370,14 @@ void DataReductionProxyCompressionStats::Init() {
&DataReductionProxyCompressionStats::OnDataUsageReportingPrefChanged,
weak_factory_.GetWeakPtr()));
+#if defined(OS_ANDROID)
if (!base::FeatureList::IsEnabled(features::kDataReductionSiteBreakdown)) {
// If the user is moved out of the experiment make sure that data usage
// reporting is not enabled and the map is cleared.
SetDataUsageReportingEnabled(false);
DeleteHistoricalDataUsage();
}
+#endif
if (data_usage_reporting_enabled_.GetValue()) {
current_data_usage_load_status_ = LOADING;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698