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 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 {IDS_FLAGS_UPDATE_MENU_ITEM_CUSTOM_SUMMARY, | 556 {IDS_FLAGS_UPDATE_MENU_ITEM_CUSTOM_SUMMARY, |
557 switches::kForceShowUpdateMenuItemCustomSummary, "Custom summary"}, | 557 switches::kForceShowUpdateMenuItemCustomSummary, "Custom summary"}, |
558 }; | 558 }; |
559 #endif // defined(OS_ANDROID) | 559 #endif // defined(OS_ANDROID) |
560 | 560 |
561 #if defined(OS_ANDROID) | 561 #if defined(OS_ANDROID) |
562 const FeatureEntry::Choice kHerbPrototypeChoices[] = { | 562 const FeatureEntry::Choice kHerbPrototypeChoices[] = { |
563 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""}, | 563 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""}, |
564 {IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, | 564 {IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
565 switches::kTabManagementExperimentTypeDisabled, ""}, | 565 switches::kTabManagementExperimentTypeDisabled, ""}, |
566 {IDS_FLAGS_HERB_PROTOTYPE_FLAVOR_ANISE, | |
567 switches::kTabManagementExperimentTypeAnise, ""}, | |
568 {IDS_FLAGS_HERB_PROTOTYPE_FLAVOR_BASIL, | |
569 switches::kTabManagementExperimentTypeBasil, ""}, | |
570 {IDS_FLAGS_HERB_PROTOTYPE_FLAVOR_CHIVE, | |
571 switches::kTabManagementExperimentTypeChive, ""}, | |
572 {IDS_FLAGS_HERB_PROTOTYPE_FLAVOR_DILL, | |
573 switches::kTabManagementExperimentTypeDill, ""}, | |
574 {IDS_FLAGS_HERB_PROTOTYPE_FLAVOR_ELDERBERRY, | 566 {IDS_FLAGS_HERB_PROTOTYPE_FLAVOR_ELDERBERRY, |
575 switches::kTabManagementExperimentTypeElderberry, ""}, | 567 switches::kTabManagementExperimentTypeElderberry, ""}, |
576 }; | 568 }; |
577 | 569 |
578 const FeatureEntry::Choice kEnableAllBookmarksViewChoices[] = { | 570 const FeatureEntry::Choice kEnableAllBookmarksViewChoices[] = { |
579 { IDS_FLAGS_ENABLE_ALL_BOOKMARKS_VIEW_CHOICE_DEFAULT, "", ""}, | 571 { IDS_FLAGS_ENABLE_ALL_BOOKMARKS_VIEW_CHOICE_DEFAULT, "", ""}, |
580 { IDS_FLAGS_ENABLE_ALL_BOOKMARKS_VIEW_CHOICE_ENABLED, | 572 { IDS_FLAGS_ENABLE_ALL_BOOKMARKS_VIEW_CHOICE_ENABLED, |
581 switches::kEnableAllBookmarksView, "true" }, | 573 switches::kEnableAllBookmarksView, "true" }, |
582 { IDS_FLAGS_ENABLE_ALL_BOOKMARKS_VIEW_CHOICE_DISABLED, | 574 { IDS_FLAGS_ENABLE_ALL_BOOKMARKS_VIEW_CHOICE_DISABLED, |
583 switches::kEnableAllBookmarksView, "false" }, | 575 switches::kEnableAllBookmarksView, "false" }, |
(...skipping 1430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2014 } | 2006 } |
2015 // enable-data-reduction-proxy-carrier-test is only available for Chromium | 2007 // enable-data-reduction-proxy-carrier-test is only available for Chromium |
2016 // builds and the Canary/Dev channel. | 2008 // builds and the Canary/Dev channel. |
2017 if (!strcmp("enable-data-reduction-proxy-carrier-test", | 2009 if (!strcmp("enable-data-reduction-proxy-carrier-test", |
2018 entry.internal_name) && | 2010 entry.internal_name) && |
2019 channel != version_info::Channel::DEV && | 2011 channel != version_info::Channel::DEV && |
2020 channel != version_info::Channel::CANARY && | 2012 channel != version_info::Channel::CANARY && |
2021 channel != version_info::Channel::UNKNOWN) { | 2013 channel != version_info::Channel::UNKNOWN) { |
2022 return true; | 2014 return true; |
2023 } | 2015 } |
2024 // Tab management prototypes are only available for local, Canary, and Dev | |
2025 // channel builds. | |
2026 if (!strcmp("tab-management-experiment-type", entry.internal_name) && | |
2027 channel != version_info::Channel::DEV && | |
2028 channel != version_info::Channel::CANARY && | |
2029 channel != version_info::Channel::UNKNOWN) { | |
2030 return true; | |
2031 } | |
2032 // enable-tab-switcher-in-document-mode is only available for Chromium | 2016 // enable-tab-switcher-in-document-mode is only available for Chromium |
2033 // builds and the Canary channel. | 2017 // builds and the Canary channel. |
2034 if (!strcmp("enable-tab-switcher-in-document-mode", | 2018 if (!strcmp("enable-tab-switcher-in-document-mode", |
2035 entry.internal_name) && | 2019 entry.internal_name) && |
2036 channel != version_info::Channel::CANARY && | 2020 channel != version_info::Channel::CANARY && |
2037 channel != version_info::Channel::UNKNOWN) { | 2021 channel != version_info::Channel::UNKNOWN) { |
2038 return true; | 2022 return true; |
2039 } | 2023 } |
2040 #endif | 2024 #endif |
2041 | 2025 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2171 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2155 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2172 | 2156 |
2173 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2157 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2174 *count = arraysize(kFeatureEntries); | 2158 *count = arraysize(kFeatureEntries); |
2175 return kFeatureEntries; | 2159 return kFeatureEntries; |
2176 } | 2160 } |
2177 | 2161 |
2178 } // namespace testing | 2162 } // namespace testing |
2179 | 2163 |
2180 } // namespace about_flags | 2164 } // namespace about_flags |
OLD | NEW |