Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Side by Side Diff: chrome/browser/about_flags.cc

Issue 2714723002: Add feature for condensed NTP tiles. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1907 matching lines...) Expand 10 before | Expand all | Expand 10 after
1918 {"enable-ntp-suggestions-notifications", 1918 {"enable-ntp-suggestions-notifications",
1919 IDS_FLAGS_ENABLE_NTP_SUGGESTIONS_NOTIFICATIONS_NAME, 1919 IDS_FLAGS_ENABLE_NTP_SUGGESTIONS_NOTIFICATIONS_NAME,
1920 IDS_FLAGS_ENABLE_NTP_SUGGESTIONS_NOTIFICATIONS_DESCRIPTION, kOsAndroid, 1920 IDS_FLAGS_ENABLE_NTP_SUGGESTIONS_NOTIFICATIONS_DESCRIPTION, kOsAndroid,
1921 FEATURE_WITH_VARIATIONS_VALUE_TYPE( 1921 FEATURE_WITH_VARIATIONS_VALUE_TYPE(
1922 params::ntp_snippets::kNotificationsFeature, 1922 params::ntp_snippets::kNotificationsFeature,
1923 kContentSuggestionsNotificationsFeatureVariations, 1923 kContentSuggestionsNotificationsFeatureVariations,
1924 ntp_snippets::kStudyName)}, 1924 ntp_snippets::kStudyName)},
1925 {"ntp-condensed-layout", IDS_FLAGS_NTP_CONDENSED_LAYOUT_NAME, 1925 {"ntp-condensed-layout", IDS_FLAGS_NTP_CONDENSED_LAYOUT_NAME,
1926 IDS_FLAGS_NTP_CONDENSED_LAYOUT_DESCRIPTION, kOsAndroid, 1926 IDS_FLAGS_NTP_CONDENSED_LAYOUT_DESCRIPTION, kOsAndroid,
1927 FEATURE_VALUE_TYPE(chrome::android::kNTPCondensedLayoutFeature)}, 1927 FEATURE_VALUE_TYPE(chrome::android::kNTPCondensedLayoutFeature)},
1928 {"ntp-condensed-tile-layout-for-small-screens",
1929 IDS_FLAGS_NTP_CONDENSED_TILE_LAYOUT_FOR_SMALL_SCREENS_NAME,
1930 IDS_FLAGS_NTP_CONDENSED_TILE_LAYOUT_FOR_SMALL_SCREENS_DESCRIPTION,
1931 kOsAndroid,
1932 FEATURE_VALUE_TYPE(
1933 chrome::android::kNTPCondensedTileLayoutForSmallScreensFeature)},
1934 {"ntp-condensed-tile-layout-for-large-screens",
1935 IDS_FLAGS_NTP_CONDENSED_TILE_LAYOUT_FOR_LARGE_SCREENS_NAME,
1936 IDS_FLAGS_NTP_CONDENSED_TILE_LAYOUT_FOR_LARGE_SCREENS_DESCRIPTION,
1937 kOsAndroid,
1938 FEATURE_VALUE_TYPE(
1939 chrome::android::kNTPCondensedTileLayoutForLargeScreensFeature)},
1928 {"ntp-google-g-in-omnibox", IDS_FLAGS_NTP_GOOGLE_G_IN_OMNIBOX_NAME, 1940 {"ntp-google-g-in-omnibox", IDS_FLAGS_NTP_GOOGLE_G_IN_OMNIBOX_NAME,
1929 IDS_FLAGS_NTP_GOOGLE_G_IN_OMNIBOX_DESCRIPTION, kOsAndroid, 1941 IDS_FLAGS_NTP_GOOGLE_G_IN_OMNIBOX_DESCRIPTION, kOsAndroid,
1930 FEATURE_VALUE_TYPE(chrome::android::NTPShowGoogleGInOmniboxFeature)}, 1942 FEATURE_VALUE_TYPE(chrome::android::NTPShowGoogleGInOmniboxFeature)},
1931 #endif // OS_ANDROID 1943 #endif // OS_ANDROID
1932 #if BUILDFLAG(ENABLE_WEBRTC) && BUILDFLAG(RTC_USE_H264) && \ 1944 #if BUILDFLAG(ENABLE_WEBRTC) && BUILDFLAG(RTC_USE_H264) && \
1933 !defined(MEDIA_DISABLE_FFMPEG) 1945 !defined(MEDIA_DISABLE_FFMPEG)
1934 {"enable-webrtc-h264-with-openh264-ffmpeg", 1946 {"enable-webrtc-h264-with-openh264-ffmpeg",
1935 IDS_FLAGS_WEBRTC_H264_WITH_OPENH264_FFMPEG_NAME, 1947 IDS_FLAGS_WEBRTC_H264_WITH_OPENH264_FFMPEG_NAME,
1936 IDS_FLAGS_WEBRTC_H264_WITH_OPENH264_FFMPEG_DESCRIPTION, kOsDesktop, 1948 IDS_FLAGS_WEBRTC_H264_WITH_OPENH264_FFMPEG_DESCRIPTION, kOsDesktop,
1937 FEATURE_VALUE_TYPE(content::kWebRtcH264WithOpenH264FFmpeg)}, 1949 FEATURE_VALUE_TYPE(content::kWebRtcH264WithOpenH264FFmpeg)},
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
2486 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2498 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2487 2499
2488 const FeatureEntry* GetFeatureEntries(size_t* count) { 2500 const FeatureEntry* GetFeatureEntries(size_t* count) {
2489 *count = arraysize(kFeatureEntries); 2501 *count = arraysize(kFeatureEntries);
2490 return kFeatureEntries; 2502 return kFeatureEntries;
2491 } 2503 }
2492 2504
2493 } // namespace testing 2505 } // namespace testing
2494 2506
2495 } // namespace about_flags 2507 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698