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 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1071 arraysize(kOmniboxUIVerticalMargin6px), nullptr}, | 1071 arraysize(kOmniboxUIVerticalMargin6px), nullptr}, |
1072 {"8px vertical margin", kOmniboxUIVerticalMargin8px, | 1072 {"8px vertical margin", kOmniboxUIVerticalMargin8px, |
1073 arraysize(kOmniboxUIVerticalMargin8px), nullptr}, | 1073 arraysize(kOmniboxUIVerticalMargin8px), nullptr}, |
1074 {"10px vertical margin", kOmniboxUIVerticalMargin10px, | 1074 {"10px vertical margin", kOmniboxUIVerticalMargin10px, |
1075 arraysize(kOmniboxUIVerticalMargin10px), nullptr}, | 1075 arraysize(kOmniboxUIVerticalMargin10px), nullptr}, |
1076 {"12px vertical margin", kOmniboxUIVerticalMargin12px, | 1076 {"12px vertical margin", kOmniboxUIVerticalMargin12px, |
1077 arraysize(kOmniboxUIVerticalMargin12px), nullptr}, | 1077 arraysize(kOmniboxUIVerticalMargin12px), nullptr}, |
1078 {"14px vertical margin", kOmniboxUIVerticalMargin14px, | 1078 {"14px vertical margin", kOmniboxUIVerticalMargin14px, |
1079 arraysize(kOmniboxUIVerticalMargin14px), nullptr}}; | 1079 arraysize(kOmniboxUIVerticalMargin14px), nullptr}}; |
1080 | 1080 |
1081 const FeatureEntry::FeatureParam kClientPlaceholdersForServerLoFiEnabled[] = { | |
1082 {"replace_server_placeholders", "true"}}; | |
1083 | |
1084 const FeatureEntry::FeatureVariation | |
1085 kClientPlaceholdersForServerLoFiFeatureVariations[] = { | |
1086 {"(replace Server LoFi placeholders)", | |
megjablon
2017/06/30 18:19:21
nit: I'd use Lo-Fi since that's what we use in the
sclittle
2017/06/30 21:21:06
Done.
| |
1087 kClientPlaceholdersForServerLoFiEnabled, | |
1088 arraysize(kClientPlaceholdersForServerLoFiEnabled), nullptr}}; | |
1089 | |
1081 // RECORDING USER METRICS FOR FLAGS: | 1090 // RECORDING USER METRICS FOR FLAGS: |
1082 // ----------------------------------------------------------------------------- | 1091 // ----------------------------------------------------------------------------- |
1083 // The first line of the entry is the internal name. | 1092 // The first line of the entry is the internal name. |
1084 // | 1093 // |
1085 // To add a new entry, add to the end of kFeatureEntries. There are two | 1094 // To add a new entry, add to the end of kFeatureEntries. There are two |
1086 // distinct types of entries: | 1095 // distinct types of entries: |
1087 // . SINGLE_VALUE: entry is either on or off. Use the SINGLE_VALUE_TYPE | 1096 // . SINGLE_VALUE: entry is either on or off. Use the SINGLE_VALUE_TYPE |
1088 // macro for this type supplying the command line to the macro. | 1097 // macro for this type supplying the command line to the macro. |
1089 // . MULTI_VALUE: a list of choices, the first of which should correspond to a | 1098 // . MULTI_VALUE: a list of choices, the first of which should correspond to a |
1090 // deactivated state for this lab (i.e. no command line option). To specify | 1099 // deactivated state for this lab (i.e. no command line option). To specify |
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1975 "DataReductionProxyMainMenu")}, | 1984 "DataReductionProxyMainMenu")}, |
1976 {"enable-data-reduction-proxy-site-breakdown", | 1985 {"enable-data-reduction-proxy-site-breakdown", |
1977 flag_descriptions::kEnableDataReductionProxySiteBreakdownName, | 1986 flag_descriptions::kEnableDataReductionProxySiteBreakdownName, |
1978 flag_descriptions::kEnableDataReductionProxySiteBreakdownDescription, | 1987 flag_descriptions::kEnableDataReductionProxySiteBreakdownDescription, |
1979 kOsAndroid, | 1988 kOsAndroid, |
1980 FEATURE_VALUE_TYPE( | 1989 FEATURE_VALUE_TYPE( |
1981 data_reduction_proxy::features::kDataReductionSiteBreakdown)}, | 1990 data_reduction_proxy::features::kDataReductionSiteBreakdown)}, |
1982 {"enable-offline-previews", flag_descriptions::kEnableOfflinePreviewsName, | 1991 {"enable-offline-previews", flag_descriptions::kEnableOfflinePreviewsName, |
1983 flag_descriptions::kEnableOfflinePreviewsDescription, kOsAndroid, | 1992 flag_descriptions::kEnableOfflinePreviewsDescription, kOsAndroid, |
1984 FEATURE_VALUE_TYPE(previews::features::kOfflinePreviews)}, | 1993 FEATURE_VALUE_TYPE(previews::features::kOfflinePreviews)}, |
1994 #endif // OS_ANDROID | |
1985 {"enable-client-lo-fi", flag_descriptions::kEnableClientLoFiName, | 1995 {"enable-client-lo-fi", flag_descriptions::kEnableClientLoFiName, |
1986 flag_descriptions::kEnableClientLoFiDescription, kOsAndroid, | 1996 flag_descriptions::kEnableClientLoFiDescription, kOsAll, |
1987 FEATURE_VALUE_TYPE(previews::features::kClientLoFi)}, | 1997 FEATURE_WITH_PARAMS_VALUE_TYPE( |
1988 #endif // OS_ANDROID | 1998 previews::features::kClientLoFi, |
1999 kClientPlaceholdersForServerLoFiFeatureVariations, | |
2000 "PreviewsClientLoFi")}, | |
1989 {"allow-insecure-localhost", flag_descriptions::kAllowInsecureLocalhostName, | 2001 {"allow-insecure-localhost", flag_descriptions::kAllowInsecureLocalhostName, |
1990 flag_descriptions::kAllowInsecureLocalhostDescription, kOsAll, | 2002 flag_descriptions::kAllowInsecureLocalhostDescription, kOsAll, |
1991 SINGLE_VALUE_TYPE(switches::kAllowInsecureLocalhost)}, | 2003 SINGLE_VALUE_TYPE(switches::kAllowInsecureLocalhost)}, |
1992 #if !defined(OS_ANDROID) | 2004 #if !defined(OS_ANDROID) |
1993 {"enable-app-banners", flag_descriptions::kAppBannersName, | 2005 {"enable-app-banners", flag_descriptions::kAppBannersName, |
1994 flag_descriptions::kAppBannersDescription, kOsDesktop, | 2006 flag_descriptions::kAppBannersDescription, kOsDesktop, |
1995 FEATURE_VALUE_TYPE(features::kAppBanners)}, | 2007 FEATURE_VALUE_TYPE(features::kAppBanners)}, |
1996 #endif // !OS_ANDROID | 2008 #endif // !OS_ANDROID |
1997 {"enable-experimental-app-banners", | 2009 {"enable-experimental-app-banners", |
1998 flag_descriptions::kExperimentalAppBannersName, | 2010 flag_descriptions::kExperimentalAppBannersName, |
(...skipping 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3329 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 3341 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
3330 | 3342 |
3331 const FeatureEntry* GetFeatureEntries(size_t* count) { | 3343 const FeatureEntry* GetFeatureEntries(size_t* count) { |
3332 *count = arraysize(kFeatureEntries); | 3344 *count = arraysize(kFeatureEntries); |
3333 return kFeatureEntries; | 3345 return kFeatureEntries; |
3334 } | 3346 } |
3335 | 3347 |
3336 } // namespace testing | 3348 } // namespace testing |
3337 | 3349 |
3338 } // namespace about_flags | 3350 } // namespace about_flags |
OLD | NEW |