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

Side by Side Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_features.cc

Issue 2802463002: Adds feature flag for chrome-proxy-ect header (default off) (Closed)
Patch Set: Tweaked the name of the Feature to be more Feature like than Switch like. Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « components/data_reduction_proxy/core/common/data_reduction_proxy_features.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « components/data_reduction_proxy/core/common/data_reduction_proxy_features.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698