| 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 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 arraysize(kNTPSnippetsFeatureVariationChromeReader), nullptr}, | 578 arraysize(kNTPSnippetsFeatureVariationChromeReader), nullptr}, |
| 579 {"via content suggestion server (backed by ChromeReader)", | 579 {"via content suggestion server (backed by ChromeReader)", |
| 580 kNTPSnippetsFeatureVariationServer, | 580 kNTPSnippetsFeatureVariationServer, |
| 581 arraysize(kNTPSnippetsFeatureVariationServer), nullptr}, | 581 arraysize(kNTPSnippetsFeatureVariationServer), nullptr}, |
| 582 {"via content suggestion server (backed by Google Now)", | 582 {"via content suggestion server (backed by Google Now)", |
| 583 kNTPSnippetsFeatureVariationServer, | 583 kNTPSnippetsFeatureVariationServer, |
| 584 arraysize(kNTPSnippetsFeatureVariationServer), "3313279"}}; | 584 arraysize(kNTPSnippetsFeatureVariationServer), "3313279"}}; |
| 585 #endif // OS_ANDROID | 585 #endif // OS_ANDROID |
| 586 | 586 |
| 587 #if defined(OS_ANDROID) | 587 #if defined(OS_ANDROID) |
| 588 const FeatureEntry::FeatureParam kCondensedTileLayoutForSmallScreensEnabled[] = |
| 589 {{"condensed_tile_layout_for_small_screens_enabled", "true"}}; |
| 590 |
| 591 const FeatureEntry::FeatureParam kCondensedTileLayoutForLargeScreensEnabled[] = |
| 592 {{"condensed_tile_layout_for_large_screens_enabled", "true"}}; |
| 593 |
| 594 const FeatureEntry::FeatureVariation |
| 595 kNTPCondensedTileLayoutFeatureVariations[] = { |
| 596 {"(small screens)", kCondensedTileLayoutForSmallScreensEnabled, |
| 597 arraysize(kCondensedTileLayoutForSmallScreensEnabled), nullptr}, |
| 598 {"(large screens)", kCondensedTileLayoutForLargeScreensEnabled, |
| 599 arraysize(kCondensedTileLayoutForLargeScreensEnabled), nullptr}}; |
| 600 #endif // OS_ANDROID |
| 601 |
| 602 #if defined(OS_ANDROID) |
| 588 const FeatureEntry::Choice kUpdateMenuItemSummaryChoices[] = { | 603 const FeatureEntry::Choice kUpdateMenuItemSummaryChoices[] = { |
| 589 {IDS_FLAGS_UPDATE_MENU_ITEM_NO_SUMMARY, "", ""}, | 604 {IDS_FLAGS_UPDATE_MENU_ITEM_NO_SUMMARY, "", ""}, |
| 590 {IDS_FLAGS_UPDATE_MENU_ITEM_DEFAULT_SUMMARY, | 605 {IDS_FLAGS_UPDATE_MENU_ITEM_DEFAULT_SUMMARY, |
| 591 switches::kForceShowUpdateMenuItemSummary, ""}, | 606 switches::kForceShowUpdateMenuItemSummary, ""}, |
| 592 {IDS_FLAGS_UPDATE_MENU_ITEM_NEW_FEATURES_SUMMARY, | 607 {IDS_FLAGS_UPDATE_MENU_ITEM_NEW_FEATURES_SUMMARY, |
| 593 switches::kForceShowUpdateMenuItemNewFeaturesSummary, ""}, | 608 switches::kForceShowUpdateMenuItemNewFeaturesSummary, ""}, |
| 594 {IDS_FLAGS_UPDATE_MENU_ITEM_CUSTOM_SUMMARY, | 609 {IDS_FLAGS_UPDATE_MENU_ITEM_CUSTOM_SUMMARY, |
| 595 switches::kForceShowUpdateMenuItemCustomSummary, "Custom summary"}, | 610 switches::kForceShowUpdateMenuItemCustomSummary, "Custom summary"}, |
| 596 }; | 611 }; |
| 597 #endif // OS_ANDROID | 612 #endif // OS_ANDROID |
| (...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1941 {"enable-ntp-suggestions-notifications", | 1956 {"enable-ntp-suggestions-notifications", |
| 1942 IDS_FLAGS_ENABLE_NTP_SUGGESTIONS_NOTIFICATIONS_NAME, | 1957 IDS_FLAGS_ENABLE_NTP_SUGGESTIONS_NOTIFICATIONS_NAME, |
| 1943 IDS_FLAGS_ENABLE_NTP_SUGGESTIONS_NOTIFICATIONS_DESCRIPTION, kOsAndroid, | 1958 IDS_FLAGS_ENABLE_NTP_SUGGESTIONS_NOTIFICATIONS_DESCRIPTION, kOsAndroid, |
| 1944 FEATURE_WITH_VARIATIONS_VALUE_TYPE( | 1959 FEATURE_WITH_VARIATIONS_VALUE_TYPE( |
| 1945 params::ntp_snippets::kNotificationsFeature, | 1960 params::ntp_snippets::kNotificationsFeature, |
| 1946 kContentSuggestionsNotificationsFeatureVariations, | 1961 kContentSuggestionsNotificationsFeatureVariations, |
| 1947 ntp_snippets::kStudyName)}, | 1962 ntp_snippets::kStudyName)}, |
| 1948 {"ntp-condensed-layout", IDS_FLAGS_NTP_CONDENSED_LAYOUT_NAME, | 1963 {"ntp-condensed-layout", IDS_FLAGS_NTP_CONDENSED_LAYOUT_NAME, |
| 1949 IDS_FLAGS_NTP_CONDENSED_LAYOUT_DESCRIPTION, kOsAndroid, | 1964 IDS_FLAGS_NTP_CONDENSED_LAYOUT_DESCRIPTION, kOsAndroid, |
| 1950 FEATURE_VALUE_TYPE(chrome::android::kNTPCondensedLayoutFeature)}, | 1965 FEATURE_VALUE_TYPE(chrome::android::kNTPCondensedLayoutFeature)}, |
| 1966 {"ntp-condensed-tile-layout", IDS_FLAGS_NTP_CONDENSED_TILE_LAYOUT_NAME, |
| 1967 IDS_FLAGS_NTP_CONDENSED_TILE_LAYOUT_DESCRIPTION, kOsAndroid, |
| 1968 FEATURE_WITH_VARIATIONS_VALUE_TYPE( |
| 1969 chrome::android::kNTPCondensedTileLayoutFeature, |
| 1970 kNTPCondensedTileLayoutFeatureVariations, |
| 1971 ntp_snippets::kStudyName)}, |
| 1951 {"ntp-google-g-in-omnibox", IDS_FLAGS_NTP_GOOGLE_G_IN_OMNIBOX_NAME, | 1972 {"ntp-google-g-in-omnibox", IDS_FLAGS_NTP_GOOGLE_G_IN_OMNIBOX_NAME, |
| 1952 IDS_FLAGS_NTP_GOOGLE_G_IN_OMNIBOX_DESCRIPTION, kOsAndroid, | 1973 IDS_FLAGS_NTP_GOOGLE_G_IN_OMNIBOX_DESCRIPTION, kOsAndroid, |
| 1953 FEATURE_VALUE_TYPE(chrome::android::NTPShowGoogleGInOmniboxFeature)}, | 1974 FEATURE_VALUE_TYPE(chrome::android::NTPShowGoogleGInOmniboxFeature)}, |
| 1954 #endif // OS_ANDROID | 1975 #endif // OS_ANDROID |
| 1955 #if BUILDFLAG(ENABLE_WEBRTC) && BUILDFLAG(RTC_USE_H264) && \ | 1976 #if BUILDFLAG(ENABLE_WEBRTC) && BUILDFLAG(RTC_USE_H264) && \ |
| 1956 !defined(MEDIA_DISABLE_FFMPEG) | 1977 !defined(MEDIA_DISABLE_FFMPEG) |
| 1957 {"enable-webrtc-h264-with-openh264-ffmpeg", | 1978 {"enable-webrtc-h264-with-openh264-ffmpeg", |
| 1958 IDS_FLAGS_WEBRTC_H264_WITH_OPENH264_FFMPEG_NAME, | 1979 IDS_FLAGS_WEBRTC_H264_WITH_OPENH264_FFMPEG_NAME, |
| 1959 IDS_FLAGS_WEBRTC_H264_WITH_OPENH264_FFMPEG_DESCRIPTION, kOsDesktop, | 1980 IDS_FLAGS_WEBRTC_H264_WITH_OPENH264_FFMPEG_DESCRIPTION, kOsDesktop, |
| 1960 FEATURE_VALUE_TYPE(content::kWebRtcH264WithOpenH264FFmpeg)}, | 1981 FEATURE_VALUE_TYPE(content::kWebRtcH264WithOpenH264FFmpeg)}, |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2517 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2538 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2518 | 2539 |
| 2519 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2540 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2520 *count = arraysize(kFeatureEntries); | 2541 *count = arraysize(kFeatureEntries); |
| 2521 return kFeatureEntries; | 2542 return kFeatureEntries; |
| 2522 } | 2543 } |
| 2523 | 2544 |
| 2524 } // namespace testing | 2545 } // namespace testing |
| 2525 | 2546 |
| 2526 } // namespace about_flags | 2547 } // namespace about_flags |
| OLD | NEW |