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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, | 334 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
335 switches::kDisableSearchButtonInOmnibox, ""}, | 335 switches::kDisableSearchButtonInOmnibox, ""}, |
336 { IDS_FLAGS_SEARCH_BUTTON_IN_OMNIBOX_ENABLE_FOR_STR, | 336 { IDS_FLAGS_SEARCH_BUTTON_IN_OMNIBOX_ENABLE_FOR_STR, |
337 switches::kEnableSearchButtonInOmniboxForStr, ""}, | 337 switches::kEnableSearchButtonInOmniboxForStr, ""}, |
338 { IDS_FLAGS_SEARCH_BUTTON_IN_OMNIBOX_ENABLE_FOR_STR_OR_IIP, | 338 { IDS_FLAGS_SEARCH_BUTTON_IN_OMNIBOX_ENABLE_FOR_STR_OR_IIP, |
339 switches::kEnableSearchButtonInOmniboxForStrOrIip, ""}, | 339 switches::kEnableSearchButtonInOmniboxForStrOrIip, ""}, |
340 { IDS_FLAGS_SEARCH_BUTTON_IN_OMNIBOX_ENABLED, | 340 { IDS_FLAGS_SEARCH_BUTTON_IN_OMNIBOX_ENABLED, |
341 switches::kEnableSearchButtonInOmniboxAlways, ""} | 341 switches::kEnableSearchButtonInOmniboxAlways, ""} |
342 }; | 342 }; |
343 | 343 |
344 // See comment above for kSearchButtonInOmniboxChoices. The same reasoning | |
345 // applies here. | |
346 const Experiment::Choice kOriginChipChoices[] = { | |
347 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | |
348 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, switches::kDisableOriginChip, ""}, | |
349 { IDS_FLAGS_ORIGIN_CHIP_ALWAYS, switches::kEnableOriginChipAlways, ""}, | |
350 { IDS_FLAGS_ORIGIN_CHIP_ON_SRP, switches::kEnableOriginChipOnSrp, ""} | |
351 }; | |
352 | |
353 const Experiment::Choice kExtensionContentVerificationChoices[] = { | 344 const Experiment::Choice kExtensionContentVerificationChoices[] = { |
354 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 345 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
355 { IDS_FLAGS_EXTENSION_CONTENT_VERIFICATION_BOOTSTRAP, | 346 { IDS_FLAGS_EXTENSION_CONTENT_VERIFICATION_BOOTSTRAP, |
356 switches::kExtensionContentVerification, | 347 switches::kExtensionContentVerification, |
357 switches::kExtensionContentVerificationBootstrap }, | 348 switches::kExtensionContentVerificationBootstrap }, |
358 { IDS_FLAGS_EXTENSION_CONTENT_VERIFICATION_ENFORCE, | 349 { IDS_FLAGS_EXTENSION_CONTENT_VERIFICATION_ENFORCE, |
359 switches::kExtensionContentVerification, | 350 switches::kExtensionContentVerification, |
360 switches::kExtensionContentVerificationEnforce }, | 351 switches::kExtensionContentVerificationEnforce }, |
361 { IDS_FLAGS_EXTENSION_CONTENT_VERIFICATION_ENFORCE_STRICT, | 352 { IDS_FLAGS_EXTENSION_CONTENT_VERIFICATION_ENFORCE_STRICT, |
362 switches::kExtensionContentVerification, | 353 switches::kExtensionContentVerification, |
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1686 }, | 1677 }, |
1687 #endif | 1678 #endif |
1688 { | 1679 { |
1689 "num-raster-threads", | 1680 "num-raster-threads", |
1690 IDS_FLAGS_NUM_RASTER_THREADS_NAME, | 1681 IDS_FLAGS_NUM_RASTER_THREADS_NAME, |
1691 IDS_FLAGS_NUM_RASTER_THREADS_DESCRIPTION, | 1682 IDS_FLAGS_NUM_RASTER_THREADS_DESCRIPTION, |
1692 kOsAll, | 1683 kOsAll, |
1693 MULTI_VALUE_TYPE(kNumRasterThreadsChoices) | 1684 MULTI_VALUE_TYPE(kNumRasterThreadsChoices) |
1694 }, | 1685 }, |
1695 { | 1686 { |
1696 "origin-chip-in-omnibox", | |
1697 IDS_FLAGS_ORIGIN_CHIP_NAME, | |
1698 IDS_FLAGS_ORIGIN_CHIP_DESCRIPTION, | |
1699 kOsCrOS | kOsMac | kOsWin | kOsLinux, | |
1700 MULTI_VALUE_TYPE(kOriginChipChoices) | |
1701 }, | |
1702 { | |
1703 "search-button-in-omnibox", | 1687 "search-button-in-omnibox", |
1704 IDS_FLAGS_SEARCH_BUTTON_IN_OMNIBOX_NAME, | 1688 IDS_FLAGS_SEARCH_BUTTON_IN_OMNIBOX_NAME, |
1705 IDS_FLAGS_SEARCH_BUTTON_IN_OMNIBOX_DESCRIPTION, | 1689 IDS_FLAGS_SEARCH_BUTTON_IN_OMNIBOX_DESCRIPTION, |
1706 kOsCrOS | kOsMac | kOsWin | kOsLinux, | 1690 kOsCrOS | kOsMac | kOsWin | kOsLinux, |
1707 MULTI_VALUE_TYPE(kSearchButtonInOmniboxChoices) | 1691 MULTI_VALUE_TYPE(kSearchButtonInOmniboxChoices) |
1708 }, | 1692 }, |
1709 { | 1693 { |
1710 "ignore-autocomplete-off-autofill", | 1694 "ignore-autocomplete-off-autofill", |
1711 IDS_FLAGS_IGNORE_AUTOCOMPLETE_OFF_AUTOFILL_NAME, | 1695 IDS_FLAGS_IGNORE_AUTOCOMPLETE_OFF_AUTOFILL_NAME, |
1712 IDS_FLAGS_IGNORE_AUTOCOMPLETE_OFF_AUTOFILL_DESCRIPTION, | 1696 IDS_FLAGS_IGNORE_AUTOCOMPLETE_OFF_AUTOFILL_DESCRIPTION, |
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2769 } | 2753 } |
2770 | 2754 |
2771 const Experiment* GetExperiments(size_t* count) { | 2755 const Experiment* GetExperiments(size_t* count) { |
2772 *count = num_experiments; | 2756 *count = num_experiments; |
2773 return experiments; | 2757 return experiments; |
2774 } | 2758 } |
2775 | 2759 |
2776 } // namespace testing | 2760 } // namespace testing |
2777 | 2761 |
2778 } // namespace about_flags | 2762 } // namespace about_flags |
OLD | NEW |