Chromium Code Reviews| 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 eb7dc11d5d69c55f1dad0fa19f40807b98bab816..7792047ed3327e0e7d12b037e11093bd06ebbec1 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 |
| @@ -111,20 +111,21 @@ bool IsIncludedInLoFiPreviewFieldTrial() { |
| kPreview, base::CompareCase::SENSITIVE); |
| } |
| bool IsIncludedInServerExperimentsFieldTrial() { |
| return !base::CommandLine::ForCurrentProcess()->HasSwitch( |
| data_reduction_proxy::switches:: |
| kDataReductionProxyServerExperimentsDisabled) && |
| FieldTrialList::FindFullName(kServerExperimentsFieldTrial) |
| .find(kDisabled) != 0; |
| } |
| + |
|
tbansal1
2016/07/26 20:12:48
This seems unrelated to this CL.
RyanSturm
2016/07/26 21:48:13
Done. :(
|
| bool IsIncludedInTamperDetectionExperiment() { |
| return IsIncludedInServerExperimentsFieldTrial() && |
| base::StartsWith( |
| FieldTrialList::FindFullName(kServerExperimentsFieldTrial), |
| "TamperDetection_Enabled", base::CompareCase::SENSITIVE); |
| } |
| bool IsLoFiOnViaFlags() { |
| return IsLoFiAlwaysOnViaFlags() || IsLoFiCellularOnlyViaFlags() || |
| IsLoFiSlowConnectionsOnlyViaFlags(); |