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

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

Issue 2367403005: Snackbar for promoting Data Saver to existing users (Closed)
Patch Set: nit Created 4 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_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 92851186a1d460a139a8e29fc3708a71e5475c38..72eb2b1d3722fccd47a9fe1f31bc56ef47f5a5e6 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
@@ -151,6 +151,20 @@ int64_t DataReductionProxySettings::GetDataReductionLastUpdateTime() {
data_reduction_proxy_service_->compression_stats()->GetLastUpdateTime();
}
+int64_t DataReductionProxySettings::GetHttpReceivedContentLength() {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ DCHECK(data_reduction_proxy_service_->compression_stats());
tbansal1 2016/10/25 18:10:04 This DCHECK is unnecessary since if data_reduction
megjablon 2016/10/25 22:14:19 Done.
+ return data_reduction_proxy_service_->compression_stats()
+ ->GetHttpReceivedContentLength();
+}
+
+int64_t DataReductionProxySettings::GetHttpOriginalContentLength() {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ DCHECK(data_reduction_proxy_service_->compression_stats());
+ return data_reduction_proxy_service_->compression_stats()
+ ->GetHttpOriginalContentLength();
+}
+
void DataReductionProxySettings::SetUnreachable(bool unreachable) {
unreachable_ = unreachable;
}

Powered by Google App Engine
This is Rietveld 408576698