OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/about_flags.h" | 5 #include "chrome/browser/about_flags.h" |
6 | 6 |
7 #include <iterator> | 7 #include <iterator> |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1892 MULTI_VALUE_TYPE(kDataReductionProxyLoFiChoices)}, | 1892 MULTI_VALUE_TYPE(kDataReductionProxyLoFiChoices)}, |
1893 {"enable-data-reduction-proxy-lite-page", | 1893 {"enable-data-reduction-proxy-lite-page", |
1894 flag_descriptions::kEnableDataReductionProxyLitePageName, | 1894 flag_descriptions::kEnableDataReductionProxyLitePageName, |
1895 flag_descriptions::kEnableDataReductionProxyLitePageDescription, kOsAll, | 1895 flag_descriptions::kEnableDataReductionProxyLitePageDescription, kOsAll, |
1896 SINGLE_VALUE_TYPE( | 1896 SINGLE_VALUE_TYPE( |
1897 data_reduction_proxy::switches::kEnableDataReductionProxyLitePage)}, | 1897 data_reduction_proxy::switches::kEnableDataReductionProxyLitePage)}, |
1898 {"enable-data-reduction-proxy-server-experiment", | 1898 {"enable-data-reduction-proxy-server-experiment", |
1899 flag_descriptions::kEnableDataReductionProxyServerExperimentName, | 1899 flag_descriptions::kEnableDataReductionProxyServerExperimentName, |
1900 flag_descriptions::kEnableDataReductionProxyServerExperimentDescription, | 1900 flag_descriptions::kEnableDataReductionProxyServerExperimentDescription, |
1901 kOsAll, MULTI_VALUE_TYPE(kDataReductionProxyServerExperiment)}, | 1901 kOsAll, MULTI_VALUE_TYPE(kDataReductionProxyServerExperiment)}, |
1902 {"enable-show-client-placeholders-for-server-lo-fi", | |
megjablon
2017/06/29 17:35:48
You could probably shorten this everywhere by remo
sclittle
2017/06/29 21:27:58
Done.
| |
1903 flag_descriptions::kEnableShowClientPlaceholdersForServerLoFiName, | |
1904 flag_descriptions::kEnableShowClientPlaceholdersForServerLoFiDescription, | |
1905 kOsAll, | |
1906 ENABLE_DISABLE_VALUE_TYPE( | |
1907 switches::kEnableShowClientPlaceholdersForServerLoFi, | |
1908 switches::kDisableShowClientPlaceholdersForServerLoFi)}, | |
megjablon
2017/06/29 17:35:48
We should probably be using a feature instead of a
sclittle
2017/06/29 21:27:58
Great idea, thanks! Done.
megjablon
2017/06/30 18:19:21
Woot! This looks a lot cleaner!
| |
1902 #if defined(OS_ANDROID) | 1909 #if defined(OS_ANDROID) |
1903 {"enable-data-reduction-proxy-savings-promo", | 1910 {"enable-data-reduction-proxy-savings-promo", |
1904 flag_descriptions::kEnableDataReductionProxySavingsPromoName, | 1911 flag_descriptions::kEnableDataReductionProxySavingsPromoName, |
1905 flag_descriptions::kEnableDataReductionProxySavingsPromoDescription, | 1912 flag_descriptions::kEnableDataReductionProxySavingsPromoDescription, |
1906 kOsAndroid, | 1913 kOsAndroid, |
1907 SINGLE_VALUE_TYPE(data_reduction_proxy::switches:: | 1914 SINGLE_VALUE_TYPE(data_reduction_proxy::switches:: |
1908 kEnableDataReductionProxySavingsPromo)}, | 1915 kEnableDataReductionProxySavingsPromo)}, |
1909 {"enable-data-reduction-proxy-main-menu", | 1916 {"enable-data-reduction-proxy-main-menu", |
1910 flag_descriptions::kEnableDataReductionProxyMainMenuName, | 1917 flag_descriptions::kEnableDataReductionProxyMainMenuName, |
1911 flag_descriptions::kEnableDataReductionProxyMainMenuDescription, | 1918 flag_descriptions::kEnableDataReductionProxyMainMenuDescription, |
(...skipping 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3262 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 3269 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
3263 | 3270 |
3264 const FeatureEntry* GetFeatureEntries(size_t* count) { | 3271 const FeatureEntry* GetFeatureEntries(size_t* count) { |
3265 *count = arraysize(kFeatureEntries); | 3272 *count = arraysize(kFeatureEntries); |
3266 return kFeatureEntries; | 3273 return kFeatureEntries; |
3267 } | 3274 } |
3268 | 3275 |
3269 } // namespace testing | 3276 } // namespace testing |
3270 | 3277 |
3271 } // namespace about_flags | 3278 } // namespace about_flags |
OLD | NEW |