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 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1713 IDS_FLAGS_AUTOFILL_CREDIT_CARD_UPLOAD_NAME, | 1713 IDS_FLAGS_AUTOFILL_CREDIT_CARD_UPLOAD_NAME, |
1714 IDS_FLAGS_AUTOFILL_CREDIT_CARD_UPLOAD_DESCRIPTION, kOsAll, | 1714 IDS_FLAGS_AUTOFILL_CREDIT_CARD_UPLOAD_DESCRIPTION, kOsAll, |
1715 ENABLE_DISABLE_VALUE_TYPE( | 1715 ENABLE_DISABLE_VALUE_TYPE( |
1716 autofill::switches::kEnableOfferUploadCreditCards, | 1716 autofill::switches::kEnableOfferUploadCreditCards, |
1717 autofill::switches::kDisableOfferUploadCreditCards)}, | 1717 autofill::switches::kDisableOfferUploadCreditCards)}, |
1718 #endif // defined(TOOLKIT_VIEWS) || defined(OS_ANDROID) | 1718 #endif // defined(TOOLKIT_VIEWS) || defined(OS_ANDROID) |
1719 #if defined(OS_ANDROID) | 1719 #if defined(OS_ANDROID) |
1720 {"tab-management-experiment-type", IDS_FLAGS_HERB_PROTOTYPE_CHOICES_NAME, | 1720 {"tab-management-experiment-type", IDS_FLAGS_HERB_PROTOTYPE_CHOICES_NAME, |
1721 IDS_FLAGS_HERB_PROTOTYPE_CHOICES_DESCRIPTION, kOsAndroid, | 1721 IDS_FLAGS_HERB_PROTOTYPE_CHOICES_DESCRIPTION, kOsAndroid, |
1722 MULTI_VALUE_TYPE(kHerbPrototypeChoices)}, | 1722 MULTI_VALUE_TYPE(kHerbPrototypeChoices)}, |
1723 {"enable-tab-switcher-in-document-mode", | |
1724 IDS_FLAGS_TAB_SWITCHER_IN_DOCUMENT_MODE_NAME, | |
1725 IDS_FLAGS_TAB_SWITCHER_IN_DOCUMENT_MODE_DESCRIPTION, kOsAndroid, | |
1726 SINGLE_VALUE_TYPE(switches::kEnableTabSwitcherInDocumentMode)}, | |
1727 {"app-link", IDS_FLAGS_ENABLE_APP_LINK_NAME, | 1723 {"app-link", IDS_FLAGS_ENABLE_APP_LINK_NAME, |
1728 IDS_FLAGS_ENABLE_APP_LINK_DESCRIPTION, kOsAndroid, | 1724 IDS_FLAGS_ENABLE_APP_LINK_DESCRIPTION, kOsAndroid, |
1729 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAppLink, | 1725 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAppLink, |
1730 switches::kDisableAppLink)}, | 1726 switches::kDisableAppLink)}, |
1731 #endif // OS_ANDROID | 1727 #endif // OS_ANDROID |
1732 {"enable-md-feedback", IDS_FLAGS_ENABLE_MATERIAL_DESIGN_FEEDBACK_NAME, | 1728 {"enable-md-feedback", IDS_FLAGS_ENABLE_MATERIAL_DESIGN_FEEDBACK_NAME, |
1733 IDS_FLAGS_ENABLE_MATERIAL_DESIGN_FEEDBACK_DESCRIPTION, kOsDesktop, | 1729 IDS_FLAGS_ENABLE_MATERIAL_DESIGN_FEEDBACK_DESCRIPTION, kOsDesktop, |
1734 SINGLE_VALUE_TYPE(switches::kEnableMaterialDesignFeedback)}, | 1730 SINGLE_VALUE_TYPE(switches::kEnableMaterialDesignFeedback)}, |
1735 {"enable-md-history", IDS_FLAGS_ENABLE_MATERIAL_DESIGN_HISTORY_NAME, | 1731 {"enable-md-history", IDS_FLAGS_ENABLE_MATERIAL_DESIGN_HISTORY_NAME, |
1736 IDS_FLAGS_ENABLE_MATERIAL_DESIGN_HISTORY_DESCRIPTION, kOsDesktop, | 1732 IDS_FLAGS_ENABLE_MATERIAL_DESIGN_HISTORY_DESCRIPTION, kOsDesktop, |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2009 } | 2005 } |
2010 // enable-data-reduction-proxy-carrier-test is only available for Chromium | 2006 // enable-data-reduction-proxy-carrier-test is only available for Chromium |
2011 // builds and the Canary/Dev channel. | 2007 // builds and the Canary/Dev channel. |
2012 if (!strcmp("enable-data-reduction-proxy-carrier-test", | 2008 if (!strcmp("enable-data-reduction-proxy-carrier-test", |
2013 entry.internal_name) && | 2009 entry.internal_name) && |
2014 channel != version_info::Channel::DEV && | 2010 channel != version_info::Channel::DEV && |
2015 channel != version_info::Channel::CANARY && | 2011 channel != version_info::Channel::CANARY && |
2016 channel != version_info::Channel::UNKNOWN) { | 2012 channel != version_info::Channel::UNKNOWN) { |
2017 return true; | 2013 return true; |
2018 } | 2014 } |
2019 // enable-tab-switcher-in-document-mode is only available for Chromium | |
2020 // builds and the Canary channel. | |
2021 if (!strcmp("enable-tab-switcher-in-document-mode", | |
2022 entry.internal_name) && | |
2023 channel != version_info::Channel::CANARY && | |
2024 channel != version_info::Channel::UNKNOWN) { | |
2025 return true; | |
2026 } | |
2027 #endif | 2015 #endif |
2028 | 2016 |
2029 // data-reduction-proxy-lo-fi and enable-data-reduction-proxy-lo-fi-preview | 2017 // data-reduction-proxy-lo-fi and enable-data-reduction-proxy-lo-fi-preview |
2030 // are only available for Chromium builds and the Canary/Dev/Beta channels. | 2018 // are only available for Chromium builds and the Canary/Dev/Beta channels. |
2031 if ((!strcmp("data-reduction-proxy-lo-fi", entry.internal_name) || | 2019 if ((!strcmp("data-reduction-proxy-lo-fi", entry.internal_name) || |
2032 !strcmp("enable-data-reduction-proxy-lo-fi-preview", | 2020 !strcmp("enable-data-reduction-proxy-lo-fi-preview", |
2033 entry.internal_name)) && | 2021 entry.internal_name)) && |
2034 channel != version_info::Channel::BETA && | 2022 channel != version_info::Channel::BETA && |
2035 channel != version_info::Channel::DEV && | 2023 channel != version_info::Channel::DEV && |
2036 channel != version_info::Channel::CANARY && | 2024 channel != version_info::Channel::CANARY && |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2158 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2146 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2159 | 2147 |
2160 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2148 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2161 *count = arraysize(kFeatureEntries); | 2149 *count = arraysize(kFeatureEntries); |
2162 return kFeatureEntries; | 2150 return kFeatureEntries; |
2163 } | 2151 } |
2164 | 2152 |
2165 } // namespace testing | 2153 } // namespace testing |
2166 | 2154 |
2167 } // namespace about_flags | 2155 } // namespace about_flags |
OLD | NEW |