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

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

Issue 2255603002: Adding a DataSaverStatus interface to DataReductionProxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding depending CL Created 4 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/core/browser/data_reduction_proxy_settings.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc
index 425a3a3b94071e35817bce36a7479a6da963787e..6e3003e600206d09a150328dd64e020fc3f2be81 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc
@@ -358,11 +358,15 @@ void DataReductionProxySettings::GetContentLengths(
int64_t* original_content_length,
int64_t* received_content_length,
int64_t* last_update_time) {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK(data_reduction_proxy_service_->compression_stats());
data_reduction_proxy_service_->compression_stats()->GetContentLengths(
days, original_content_length, received_content_length, last_update_time);
}
+bool DataReductionProxySettings::IsDataSaverEnabled() const {
+ return IsDataReductionProxyEnabled();
+}
+
} // namespace data_reduction_proxy

Powered by Google App Engine
This is Rietveld 408576698