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

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

Issue 412143009: Moved data reduction proxy initialization logic to ProfileImplIOData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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.cc
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_settings.cc b/components/data_reduction_proxy/browser/data_reduction_proxy_settings.cc
index a8dc45cb81ad7f0e5fd56b1490c64fb218518f7f..5905f96e19b334e250c2f75a94d7a1673d96cc59 100644
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_settings.cc
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_settings.cc
@@ -87,6 +87,7 @@ DataReductionProxySettings::DataReductionProxySettings(
: restricted_by_carrier_(false),
enabled_by_user_(false),
disabled_on_vpn_(false),
+ unreachable_(false),
prefs_(NULL),
local_state_prefs_(NULL),
url_request_context_getter_(NULL) {
@@ -207,14 +208,13 @@ DataReductionProxySettings::GetDailyOriginalContentLengths() {
return GetDailyContentLengths(prefs::kDailyHttpOriginalContentLength);
}
-bool DataReductionProxySettings::IsDataReductionProxyUnreachable() {
- DCHECK(thread_checker_.CalledOnValidThread());
- return usage_stats_ && usage_stats_->isDataReductionProxyUnreachable();
+void DataReductionProxySettings::SetUnreachable(bool unreachable) {
+ unreachable_ = unreachable;
}
-void DataReductionProxySettings::SetDataReductionProxyUsageStats(
- DataReductionProxyUsageStats* usage_stats) {
- usage_stats_ = usage_stats;
+bool DataReductionProxySettings::IsDataReductionProxyUnreachable() {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ return unreachable_;
}
DataReductionProxySettings::ContentLengthList

Powered by Google App Engine
This is Rietveld 408576698