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

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

Issue 2922663002: Data Reduction Proxy: Remove duplicate functions (Closed)
Patch Set: ps Created 3 years, 7 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.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h
index b329f5f1cb3e4fabc5330d3e375f550c299ca01b..0cd1ea2e081bbbe189dab3092239f66ce4b7175d 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h
@@ -17,6 +17,7 @@
#include "base/threading/thread_checker.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_service_observer.h"
+#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
#include "components/prefs/pref_member.h"
#include "url/gurl.h"
@@ -172,7 +173,7 @@ class DataReductionProxySettings : public DataReductionProxyServiceObserver {
// Returns true if the data reduction proxy promo may be shown.
// This is independent of whether the data reduction proxy is allowed.
bool PromoAllowed() const {
megjablon 2017/06/02 23:01:50 It doesn't look like this called from anywhere oth
tbansal1 2017/06/05 13:48:24 Done.
- return promo_allowed_;
+ return data_reduction_proxy::params::IsIncludedInPromoFieldTrial();
}
DataReductionProxyService* data_reduction_proxy_service() {
@@ -281,11 +282,6 @@ class DataReductionProxySettings : public DataReductionProxyServiceObserver {
// IO object calls will be performed at that time.
bool deferred_initialization_;
- // The following values are cached in order to access the values on the
- // correct thread.
- bool allowed_;
- bool promo_allowed_;
-
// The number of requests to reload the page with images from the Lo-Fi
// UI until Lo-Fi is disabled for the remainder of the session.
int lo_fi_user_requests_for_images_per_session_;

Powered by Google App Engine
This is Rietveld 408576698