| 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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 #if defined(OS_ANDROID) | 423 #if defined(OS_ANDROID) |
| 424 const Experiment::Choice kAnswersInSuggestChoices[] = { | 424 const Experiment::Choice kAnswersInSuggestChoices[] = { |
| 425 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 425 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 426 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, | 426 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
| 427 switches::kEnableAnswersInSuggest, ""}, | 427 switches::kEnableAnswersInSuggest, ""}, |
| 428 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, | 428 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 429 switches::kDisableAnswersInSuggest, ""} | 429 switches::kDisableAnswersInSuggest, ""} |
| 430 }; | 430 }; |
| 431 #endif | 431 #endif |
| 432 | 432 |
| 433 // Using independent flags (instead of flag=value flags) to be able to | |
| 434 // associate the version with a FieldTrial. FieldTrials don't currently support | |
| 435 // flag=value flags. | |
| 436 const Experiment::Choice kMalwareInterstitialVersions[] = { | |
| 437 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | |
| 438 { IDS_FLAGS_MALWARE_INTERSTITIAL_VERSION_V2, | |
| 439 switches::kMalwareInterstitialV2, "" }, | |
| 440 { IDS_FLAGS_MALWARE_INTERSTITIAL_VERSION_V3, | |
| 441 switches::kMalwareInterstitialV3, "" }, | |
| 442 { IDS_FLAGS_MALWARE_INTERSTITIAL_VERSION_V3_ADVICE, | |
| 443 switches::kMalwareInterstitialV3Advice, "" }, | |
| 444 { IDS_FLAGS_MALWARE_INTERSTITIAL_VERSION_V3_SOCIAL, | |
| 445 switches::kMalwareInterstitialV3Social, "" }, | |
| 446 { IDS_FLAGS_MALWARE_INTERSTITIAL_VERSION_V3_NOTRECOMMEND, | |
| 447 switches::kMalwareInterstitialV3NotRecommend, "" }, | |
| 448 { IDS_FLAGS_MALWARE_INTERSTITIAL_VERSION_V3_HISTORY, | |
| 449 switches::kMalwareInterstitialV3History, "" }, | |
| 450 }; | |
| 451 | |
| 452 #if defined(OS_CHROMEOS) | 433 #if defined(OS_CHROMEOS) |
| 453 const Experiment::Choice kEnableFileManagerMTPChoices[] = { | 434 const Experiment::Choice kEnableFileManagerMTPChoices[] = { |
| 454 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 435 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 455 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, | 436 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
| 456 chromeos::switches::kEnableFileManagerMTP, "true" }, | 437 chromeos::switches::kEnableFileManagerMTP, "true" }, |
| 457 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, | 438 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
| 458 chromeos::switches::kEnableFileManagerMTP, "false" } | 439 chromeos::switches::kEnableFileManagerMTP, "false" } |
| 459 }; | 440 }; |
| 460 | 441 |
| 461 const Experiment::Choice kEnableFileManagerNewGalleryChoices[] = { | 442 const Experiment::Choice kEnableFileManagerNewGalleryChoices[] = { |
| (...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1862 }, | 1843 }, |
| 1863 #if defined(OS_ANDROID) | 1844 #if defined(OS_ANDROID) |
| 1864 { | 1845 { |
| 1865 "answers-in-suggest", | 1846 "answers-in-suggest", |
| 1866 IDS_FLAGS_ENABLE_ANSWERS_IN_SUGGEST_NAME, | 1847 IDS_FLAGS_ENABLE_ANSWERS_IN_SUGGEST_NAME, |
| 1867 IDS_FLAGS_ENABLE_ANSWERS_IN_SUGGEST_DESCRIPTION, | 1848 IDS_FLAGS_ENABLE_ANSWERS_IN_SUGGEST_DESCRIPTION, |
| 1868 kOsAndroid, | 1849 kOsAndroid, |
| 1869 MULTI_VALUE_TYPE(kAnswersInSuggestChoices) | 1850 MULTI_VALUE_TYPE(kAnswersInSuggestChoices) |
| 1870 }, | 1851 }, |
| 1871 #endif | 1852 #endif |
| 1872 { | |
| 1873 "malware-interstitial-version", | |
| 1874 IDS_FLAGS_MALWARE_INTERSTITIAL_TRIAL_NAME, | |
| 1875 IDS_FLAGS_MALWARE_INTERSTITIAL_TRIAL_DESCRIPTION, | |
| 1876 kOsAll, | |
| 1877 MULTI_VALUE_TYPE(kMalwareInterstitialVersions) | |
| 1878 }, | |
| 1879 #if defined(OS_ANDROID) | 1853 #if defined(OS_ANDROID) |
| 1880 { | 1854 { |
| 1881 "enable-data-reduction-proxy-dev", | 1855 "enable-data-reduction-proxy-dev", |
| 1882 IDS_FLAGS_ENABLE_DATA_REDUCTION_PROXY_DEV_NAME, | 1856 IDS_FLAGS_ENABLE_DATA_REDUCTION_PROXY_DEV_NAME, |
| 1883 IDS_FLAGS_ENABLE_DATA_REDUCTION_PROXY_DEV_DESCRIPTION, | 1857 IDS_FLAGS_ENABLE_DATA_REDUCTION_PROXY_DEV_DESCRIPTION, |
| 1884 kOsAndroid, | 1858 kOsAndroid, |
| 1885 ENABLE_DISABLE_VALUE_TYPE( | 1859 ENABLE_DISABLE_VALUE_TYPE( |
| 1886 data_reduction_proxy::switches::kEnableDataReductionProxyDev, | 1860 data_reduction_proxy::switches::kEnableDataReductionProxyDev, |
| 1887 data_reduction_proxy::switches::kDisableDataReductionProxyDev) | 1861 data_reduction_proxy::switches::kDisableDataReductionProxyDev) |
| 1888 }, | 1862 }, |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2438 } | 2412 } |
| 2439 | 2413 |
| 2440 const Experiment* GetExperiments(size_t* count) { | 2414 const Experiment* GetExperiments(size_t* count) { |
| 2441 *count = num_experiments; | 2415 *count = num_experiments; |
| 2442 return experiments; | 2416 return experiments; |
| 2443 } | 2417 } |
| 2444 | 2418 |
| 2445 } // namespace testing | 2419 } // namespace testing |
| 2446 | 2420 |
| 2447 } // namespace about_flags | 2421 } // namespace about_flags |
| OLD | NEW |