| Index: components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc
|
| diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc b/components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc
|
| index b5f0a5f12bb145064b9acbadc764d8a07435ef54..c66a27ca27bb6f0c8a486616aa4b0cfb1d9147a8 100644
|
| --- a/components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc
|
| +++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc
|
| @@ -104,9 +104,17 @@ bool IsIncludedInLoFiPreviewFieldTrial() {
|
| 0;
|
| }
|
|
|
| +bool IsIncludedInServerExperimentsFieldTrial() {
|
| + return !base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + data_reduction_proxy::switches::
|
| + kDataReductionProxyServerExperimentsDisabled) &&
|
| + FieldTrialList::FindFullName(kServerExperimentsFieldTrial)
|
| + .find(kDisabled) != 0;
|
| +}
|
| bool IsIncludedInTamperDetectionExperiment() {
|
| - return FieldTrialList::FindFullName("DataReductionProxyServerExperiments")
|
| - .find("TamperDetection_Enabled") == 0;
|
| + return IsIncludedInServerExperimentsFieldTrial() &&
|
| + FieldTrialList::FindFullName(kServerExperimentsFieldTrial)
|
| + .find("TamperDetection_Enabled") == 0;
|
| }
|
|
|
| bool IsLoFiOnViaFlags() {
|
|
|