| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_featu
res.h" | 5 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_featu
res.h" |
| 6 | 6 |
| 7 namespace data_reduction_proxy { | 7 namespace data_reduction_proxy { |
| 8 namespace features { | 8 namespace features { |
| 9 | 9 |
| 10 // Enables the Data Reduction Proxy menu item in the main menu rather than under | 10 // Enables the Data Reduction Proxy menu item in the main menu rather than under |
| 11 // Settings on Android. | 11 // Settings on Android. |
| 12 const base::Feature kDataReductionMainMenu{"DataReductionProxyMainMenu", | 12 const base::Feature kDataReductionMainMenu{"DataReductionProxyMainMenu", |
| 13 base::FEATURE_DISABLED_BY_DEFAULT}; | 13 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 14 | 14 |
| 15 // Enables sending the Effective Connection Type header to the Data Reduction |
| 16 // Proxy. |
| 17 const base::Feature kDataReductionProxyECTHeader{ |
| 18 "DataReductionProxyECTHeader", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 19 |
| 20 bool IsDataReductionProxyECTHeaderEnabled() { |
| 21 return base::FeatureList::IsEnabled(kDataReductionProxyECTHeader); |
| 22 } |
| 23 |
| 15 } // namespace features | 24 } // namespace features |
| 16 } // namespace data_reduction_proxy | 25 } // namespace data_reduction_proxy |
| OLD | NEW |