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 fe62c2f4f29ba9349a546dc67a5805546750b56a..13157cbe6c6badc55341327f97992bbd860f4e96 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 |
| @@ -50,6 +50,8 @@ const char kLoFiFlagFieldTrial[] = "DataCompressionProxyLoFiFlag"; |
| const char kConfigServiceFieldTrial[] = "DataReductionProxyConfigService"; |
| const char kConfigServiceURLParam[] = "url"; |
| +const char kTrustedSpdyProxyFieldTrialName[] = "DataReductionTrustedSpdyProxy"; |
| + |
| // Default URL for retrieving the Data Reduction Proxy configuration. |
| const char kClientConfigURL[] = |
| "https://datasaver.googleapis.com/v1/clientConfigs"; |
| @@ -78,6 +80,15 @@ bool IsIncludedInAndroidOnePromoFieldTrial(const char* build_fingerprint) { |
| return (fingerprint.find(kAndroidOneIdentifier) != std::string::npos); |
| } |
| +std::string GetTrustedSpdyProxyFieldTrialName() { |
| + return kTrustedSpdyProxyFieldTrialName; |
| +} |
| + |
| +bool IsIncludedInTrustedSpdyProxyFieldTrial() { |
| + return base::FieldTrialList::FindFullName(GetTrustedSpdyProxyFieldTrialName()) |
|
bengr
2016/01/26 19:39:55
Do you really need both methods?
tbansal1
2016/01/27 00:13:34
Yes, GetTrustedSpdyProxyFieldTrialName() is used i
|
| + .find(kEnabled) == 0; |
| +} |
| + |
| std::string GetLoFiFieldTrialName() { |
| return kLoFiFieldTrial; |
| } |