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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 #if defined(OS_ANDROID) | 424 #if defined(OS_ANDROID) |
425 const Experiment::Choice kAnswersInSuggestChoices[] = { | 425 const Experiment::Choice kAnswersInSuggestChoices[] = { |
426 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 426 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
427 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, | 427 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
428 switches::kEnableAnswersInSuggest, ""}, | 428 switches::kEnableAnswersInSuggest, ""}, |
429 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, | 429 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
430 switches::kDisableAnswersInSuggest, ""} | 430 switches::kDisableAnswersInSuggest, ""} |
431 }; | 431 }; |
432 #endif | 432 #endif |
433 | 433 |
434 // Using independent flags (instead of flag=value flags) to be able to | |
435 // associate the version with a FieldTrial. FieldTrials don't currently support | |
436 // flag=value flags. | |
437 const Experiment::Choice kMalwareInterstitialVersions[] = { | |
438 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | |
439 { IDS_FLAGS_MALWARE_INTERSTITIAL_VERSION_V2, | |
440 switches::kMalwareInterstitialV2, "" }, | |
441 { IDS_FLAGS_MALWARE_INTERSTITIAL_VERSION_V3, | |
442 switches::kMalwareInterstitialV3, "" }, | |
443 { IDS_FLAGS_MALWARE_INTERSTITIAL_VERSION_V3_ADVICE, | |
444 switches::kMalwareInterstitialV3Advice, "" }, | |
445 { IDS_FLAGS_MALWARE_INTERSTITIAL_VERSION_V3_SOCIAL, | |
446 switches::kMalwareInterstitialV3Social, "" }, | |
447 { IDS_FLAGS_MALWARE_INTERSTITIAL_VERSION_V3_NOTRECOMMEND, | |
448 switches::kMalwareInterstitialV3NotRecommend, "" }, | |
449 { IDS_FLAGS_MALWARE_INTERSTITIAL_VERSION_V3_HISTORY, | |
450 switches::kMalwareInterstitialV3History, "" }, | |
451 }; | |
452 | |
453 #if defined(OS_CHROMEOS) | 434 #if defined(OS_CHROMEOS) |
454 const Experiment::Choice kEnableFileManagerMTPChoices[] = { | 435 const Experiment::Choice kEnableFileManagerMTPChoices[] = { |
455 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 436 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
456 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, | 437 { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, |
457 chromeos::switches::kEnableFileManagerMTP, "true" }, | 438 chromeos::switches::kEnableFileManagerMTP, "true" }, |
458 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, | 439 { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, |
459 chromeos::switches::kEnableFileManagerMTP, "false" } | 440 chromeos::switches::kEnableFileManagerMTP, "false" } |
460 }; | 441 }; |
461 | 442 |
462 const Experiment::Choice kEnableFileManagerNewGalleryChoices[] = { | 443 const Experiment::Choice kEnableFileManagerNewGalleryChoices[] = { |
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1878 }, | 1859 }, |
1879 #if defined(OS_ANDROID) | 1860 #if defined(OS_ANDROID) |
1880 { | 1861 { |
1881 "answers-in-suggest", | 1862 "answers-in-suggest", |
1882 IDS_FLAGS_ENABLE_ANSWERS_IN_SUGGEST_NAME, | 1863 IDS_FLAGS_ENABLE_ANSWERS_IN_SUGGEST_NAME, |
1883 IDS_FLAGS_ENABLE_ANSWERS_IN_SUGGEST_DESCRIPTION, | 1864 IDS_FLAGS_ENABLE_ANSWERS_IN_SUGGEST_DESCRIPTION, |
1884 kOsAndroid, | 1865 kOsAndroid, |
1885 MULTI_VALUE_TYPE(kAnswersInSuggestChoices) | 1866 MULTI_VALUE_TYPE(kAnswersInSuggestChoices) |
1886 }, | 1867 }, |
1887 #endif | 1868 #endif |
1888 { | |
1889 "malware-interstitial-version", | |
1890 IDS_FLAGS_MALWARE_INTERSTITIAL_TRIAL_NAME, | |
1891 IDS_FLAGS_MALWARE_INTERSTITIAL_TRIAL_DESCRIPTION, | |
1892 kOsAll, | |
1893 MULTI_VALUE_TYPE(kMalwareInterstitialVersions) | |
1894 }, | |
1895 #if defined(OS_ANDROID) | 1869 #if defined(OS_ANDROID) |
1896 { | 1870 { |
1897 "enable-data-reduction-proxy-dev", | 1871 "enable-data-reduction-proxy-dev", |
1898 IDS_FLAGS_ENABLE_DATA_REDUCTION_PROXY_DEV_NAME, | 1872 IDS_FLAGS_ENABLE_DATA_REDUCTION_PROXY_DEV_NAME, |
1899 IDS_FLAGS_ENABLE_DATA_REDUCTION_PROXY_DEV_DESCRIPTION, | 1873 IDS_FLAGS_ENABLE_DATA_REDUCTION_PROXY_DEV_DESCRIPTION, |
1900 kOsAndroid, | 1874 kOsAndroid, |
1901 ENABLE_DISABLE_VALUE_TYPE( | 1875 ENABLE_DISABLE_VALUE_TYPE( |
1902 data_reduction_proxy::switches::kEnableDataReductionProxyDev, | 1876 data_reduction_proxy::switches::kEnableDataReductionProxyDev, |
1903 data_reduction_proxy::switches::kDisableDataReductionProxyDev) | 1877 data_reduction_proxy::switches::kDisableDataReductionProxyDev) |
1904 }, | 1878 }, |
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2461 } | 2435 } |
2462 | 2436 |
2463 const Experiment* GetExperiments(size_t* count) { | 2437 const Experiment* GetExperiments(size_t* count) { |
2464 *count = num_experiments; | 2438 *count = num_experiments; |
2465 return experiments; | 2439 return experiments; |
2466 } | 2440 } |
2467 | 2441 |
2468 } // namespace testing | 2442 } // namespace testing |
2469 | 2443 |
2470 } // namespace about_flags | 2444 } // namespace about_flags |
OLD | NEW |