| 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 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 {IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, switches::kNtpSwitchToExistingTab, | 503 {IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, switches::kNtpSwitchToExistingTab, |
| 504 "disabled"}, | 504 "disabled"}, |
| 505 {IDS_FLAGS_NTP_SWITCH_TO_EXISTING_TAB_MATCH_URL, | 505 {IDS_FLAGS_NTP_SWITCH_TO_EXISTING_TAB_MATCH_URL, |
| 506 switches::kNtpSwitchToExistingTab, "url"}, | 506 switches::kNtpSwitchToExistingTab, "url"}, |
| 507 {IDS_FLAGS_NTP_SWITCH_TO_EXISTING_TAB_MATCH_HOST, | 507 {IDS_FLAGS_NTP_SWITCH_TO_EXISTING_TAB_MATCH_HOST, |
| 508 switches::kNtpSwitchToExistingTab, "host"}, | 508 switches::kNtpSwitchToExistingTab, "host"}, |
| 509 }; | 509 }; |
| 510 #endif // OS_ANDROID | 510 #endif // OS_ANDROID |
| 511 | 511 |
| 512 #if defined(OS_ANDROID) | 512 #if defined(OS_ANDROID) |
| 513 const FeatureEntry::FeatureParam |
| 514 kNTPSnippetsCategoryRankerFeatureVariationConstant[] = { |
| 515 {"category_ranker", "constant"}, |
| 516 }; |
| 517 |
| 518 const FeatureEntry::FeatureParam |
| 519 kNTPSnippetsCategoryRankerFeatureVariationClickBased[] = { |
| 520 {"category_ranker", "click_based"}, |
| 521 }; |
| 522 |
| 523 const FeatureEntry::FeatureVariation |
| 524 kNTPSnippetsCategoryRankerFeatureVariations[] = { |
| 525 {"(constant)", kNTPSnippetsCategoryRankerFeatureVariationConstant, |
| 526 arraysize(kNTPSnippetsCategoryRankerFeatureVariationConstant), |
| 527 nullptr}, |
| 528 {"(click based)", kNTPSnippetsCategoryRankerFeatureVariationClickBased, |
| 529 arraysize(kNTPSnippetsCategoryRankerFeatureVariationClickBased), |
| 530 nullptr}}; |
| 531 #endif // OS_ANDROID |
| 532 |
| 533 #if defined(OS_ANDROID) |
| 513 const FeatureEntry::FeatureParam kNTPSnippetsFeatureVariationOnlyPersonal[] = { | 534 const FeatureEntry::FeatureParam kNTPSnippetsFeatureVariationOnlyPersonal[] = { |
| 514 {"fetching_personalization", "personal"}, | 535 {"fetching_personalization", "personal"}, |
| 515 }; | 536 }; |
| 516 | 537 |
| 517 const FeatureEntry::FeatureParam kNTPSnippetsFeatureVariationServer[] = { | 538 const FeatureEntry::FeatureParam kNTPSnippetsFeatureVariationServer[] = { |
| 518 {"content_suggestions_backend", | 539 {"content_suggestions_backend", |
| 519 ntp_snippets::kContentSuggestionsServer}}; | 540 ntp_snippets::kContentSuggestionsServer}}; |
| 520 | 541 |
| 521 const FeatureEntry::FeatureParam | 542 const FeatureEntry::FeatureParam |
| 522 kNTPSnippetsFeatureVariationServerNonPersonalized[] = { | 543 kNTPSnippetsFeatureVariationServerNonPersonalized[] = { |
| (...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1832 {"disable-audio-support-for-desktop-share", | 1853 {"disable-audio-support-for-desktop-share", |
| 1833 IDS_FLAG_DISABLE_AUDIO_FOR_DESKTOP_SHARE, | 1854 IDS_FLAG_DISABLE_AUDIO_FOR_DESKTOP_SHARE, |
| 1834 IDS_FLAG_DISABLE_AUDIO_FOR_DESKTOP_SHARE_DESCRIPTION, kOsAll, | 1855 IDS_FLAG_DISABLE_AUDIO_FOR_DESKTOP_SHARE_DESCRIPTION, kOsAll, |
| 1835 SINGLE_VALUE_TYPE(switches::kDisableAudioSupportForDesktopShare)}, | 1856 SINGLE_VALUE_TYPE(switches::kDisableAudioSupportForDesktopShare)}, |
| 1836 #if BUILDFLAG(ENABLE_EXTENSIONS) | 1857 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 1837 {"tab-for-desktop-share", IDS_FLAG_DISABLE_TAB_FOR_DESKTOP_SHARE, | 1858 {"tab-for-desktop-share", IDS_FLAG_DISABLE_TAB_FOR_DESKTOP_SHARE, |
| 1838 IDS_FLAG_DISABLE_TAB_FOR_DESKTOP_SHARE_DESCRIPTION, kOsAll, | 1859 IDS_FLAG_DISABLE_TAB_FOR_DESKTOP_SHARE_DESCRIPTION, kOsAll, |
| 1839 SINGLE_VALUE_TYPE(extensions::switches::kDisableTabForDesktopShare)}, | 1860 SINGLE_VALUE_TYPE(extensions::switches::kDisableTabForDesktopShare)}, |
| 1840 #endif // ENABLE_EXTENSIONS | 1861 #endif // ENABLE_EXTENSIONS |
| 1841 #if defined(OS_ANDROID) | 1862 #if defined(OS_ANDROID) |
| 1863 {"ntp-category-ranker", IDS_FLAGS_NTP_CATEGORY_RANKER_NAME, |
| 1864 IDS_FLAGS_NTP_CATEGORY_RANKER_DESCRIPTION, kOsAndroid, |
| 1865 FEATURE_WITH_VARIATIONS_VALUE_TYPE( |
| 1866 ntp_snippets::kCategoryRanker, |
| 1867 kNTPSnippetsCategoryRankerFeatureVariations, |
| 1868 ntp_snippets::kStudyName)}, |
| 1842 {"enable-ntp-snippets", IDS_FLAGS_ENABLE_NTP_SNIPPETS_NAME, | 1869 {"enable-ntp-snippets", IDS_FLAGS_ENABLE_NTP_SNIPPETS_NAME, |
| 1843 IDS_FLAGS_ENABLE_NTP_SNIPPETS_DESCRIPTION, kOsAndroid, | 1870 IDS_FLAGS_ENABLE_NTP_SNIPPETS_DESCRIPTION, kOsAndroid, |
| 1844 FEATURE_WITH_VARIATIONS_VALUE_TYPE( | 1871 FEATURE_WITH_VARIATIONS_VALUE_TYPE( |
| 1845 ntp_snippets::kContentSuggestionsFeature, | 1872 ntp_snippets::kContentSuggestionsFeature, |
| 1846 kNTPSnippetsFeatureVariations, | 1873 kNTPSnippetsFeatureVariations, |
| 1847 ntp_snippets::kStudyName)}, | 1874 ntp_snippets::kStudyName)}, |
| 1848 {"enable-ntp-snippets-increased-visibility", | 1875 {"enable-ntp-snippets-increased-visibility", |
| 1849 IDS_FLAGS_ENABLE_NTP_SNIPPETS_VISIBILITY_NAME, | 1876 IDS_FLAGS_ENABLE_NTP_SNIPPETS_VISIBILITY_NAME, |
| 1850 IDS_FLAGS_ENABLE_NTP_SNIPPETS_VISIBILITY_DESCRIPTION, kOsAndroid, | 1877 IDS_FLAGS_ENABLE_NTP_SNIPPETS_VISIBILITY_DESCRIPTION, kOsAndroid, |
| 1851 FEATURE_VALUE_TYPE(ntp_snippets::kIncreasedVisibility)}, | 1878 FEATURE_VALUE_TYPE(ntp_snippets::kIncreasedVisibility)}, |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2341 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2368 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2342 | 2369 |
| 2343 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2370 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2344 *count = arraysize(kFeatureEntries); | 2371 *count = arraysize(kFeatureEntries); |
| 2345 return kFeatureEntries; | 2372 return kFeatureEntries; |
| 2346 } | 2373 } |
| 2347 | 2374 |
| 2348 } // namespace testing | 2375 } // namespace testing |
| 2349 | 2376 |
| 2350 } // namespace about_flags | 2377 } // namespace about_flags |
| OLD | NEW |