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

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

Issue 2060623002: Implementation of Device End of Life Notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase the branch Created 4 years, 6 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 1872 matching lines...) Expand 10 before | Expand all | Expand 10 after
1883 #endif 1883 #endif
1884 #if defined(OS_ANDROID) 1884 #if defined(OS_ANDROID)
1885 {"media-style-notification", IDS_FLAGS_MEDIA_STYLE_NOTIFICATION_NAME, 1885 {"media-style-notification", IDS_FLAGS_MEDIA_STYLE_NOTIFICATION_NAME,
1886 IDS_FLAGS_MEDIA_STYLE_NOTIFICATION_DESCRIPTION, kOsAndroid, 1886 IDS_FLAGS_MEDIA_STYLE_NOTIFICATION_DESCRIPTION, kOsAndroid,
1887 FEATURE_VALUE_TYPE(chrome::android::kMediaStyleNotification)}, 1887 FEATURE_VALUE_TYPE(chrome::android::kMediaStyleNotification)},
1888 {"important-sites-in-cbd", IDS_FLAGS_IMPORTANT_SITES_IN_CBD_NAME, 1888 {"important-sites-in-cbd", IDS_FLAGS_IMPORTANT_SITES_IN_CBD_NAME,
1889 IDS_FLAGS_IMPORTANT_SITES_IN_CBD_DESCRIPTION, kOsAndroid, 1889 IDS_FLAGS_IMPORTANT_SITES_IN_CBD_DESCRIPTION, kOsAndroid,
1890 FEATURE_VALUE_TYPE(chrome::android::kImportantSitesInCBD)}, 1890 FEATURE_VALUE_TYPE(chrome::android::kImportantSitesInCBD)},
1891 {"enable-autoplay-muted-videos", 1891 {"enable-autoplay-muted-videos",
1892 IDS_FLAGS_ENABLE_AUTOPLAY_MUTED_VIDEOS_NAME, 1892 IDS_FLAGS_ENABLE_AUTOPLAY_MUTED_VIDEOS_NAME,
1893 IDS_FLAGS_ENABLE_AUTOPLAY_MUTED_VIDEOS_DESCRIPTION, 1893 IDS_FLAGS_ENABLE_AUTOPLAY_MUTED_VIDEOS_DESCRIPTION, kOsAndroid,
1894 kOsAndroid,
1895 SINGLE_VALUE_TYPE(switches::kEnableAutoplayMutedVideos)}, 1894 SINGLE_VALUE_TYPE(switches::kEnableAutoplayMutedVideos)},
1896 #endif 1895 #endif
1897 {"enable-pointer-events", // FLAGS:RECORD_UMA 1896 {"enable-pointer-events", // FLAGS:RECORD_UMA
1898 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_NAME, 1897 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_NAME,
1899 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_DESCRIPTION, kOsAll, 1898 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_DESCRIPTION, kOsAll,
1900 FEATURE_VALUE_TYPE(features::kPointerEvents)}, 1899 FEATURE_VALUE_TYPE(features::kPointerEvents)},
1901 {"passive-listener-default", // FLAGS:RECORD_UMA 1900 {"passive-listener-default", // FLAGS:RECORD_UMA
1902 IDS_FLAGS_PASSIVE_EVENT_LISTENER_DEFAULT_NAME, 1901 IDS_FLAGS_PASSIVE_EVENT_LISTENER_DEFAULT_NAME,
1903 IDS_FLAGS_PASSIVE_EVENT_LISTENER_DEFAULT_DESCRIPTION, kOsAll, 1902 IDS_FLAGS_PASSIVE_EVENT_LISTENER_DEFAULT_DESCRIPTION, kOsAll,
1904 MULTI_VALUE_TYPE(kPassiveListenersChoices)}, 1903 MULTI_VALUE_TYPE(kPassiveListenersChoices)},
1905 {"enable-loading-ipc-optimization-for-small-resources", 1904 {"enable-loading-ipc-optimization-for-small-resources",
1906 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_NAME, 1905 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_NAME,
1907 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_DESCRIPTION, kOsAll, 1906 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_DESCRIPTION, kOsAll,
1908 FEATURE_VALUE_TYPE(features::kOptimizeLoadingIPCForSmallResources)}, 1907 FEATURE_VALUE_TYPE(features::kOptimizeLoadingIPCForSmallResources)},
1909 {"enable-font-cache-scaling", IDS_FLAGS_FONT_CACHE_SCALING_NAME, 1908 {"enable-font-cache-scaling", IDS_FLAGS_FONT_CACHE_SCALING_NAME,
1910 IDS_FLAGS_FONT_CACHE_SCALING_DESCRIPTION, kOsAll, 1909 IDS_FLAGS_FONT_CACHE_SCALING_DESCRIPTION, kOsAll,
1911 FEATURE_VALUE_TYPE(features::kFontCacheScaling)}, 1910 FEATURE_VALUE_TYPE(features::kFontCacheScaling)},
1912 #if defined(OS_ANDROID) 1911 #if defined(OS_ANDROID)
1913 {"enable-vr-shell", 1912 {"enable-vr-shell", IDS_FLAGS_ENABLE_VR_SHELL_NAME,
1914 IDS_FLAGS_ENABLE_VR_SHELL_NAME,
1915 IDS_FLAGS_ENABLE_VR_SHELL_DESCRIPTION, kOsAndroid, 1913 IDS_FLAGS_ENABLE_VR_SHELL_DESCRIPTION, kOsAndroid,
1916 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableVrShell, 1914 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableVrShell,
1917 switches::kDisableVrShell)}, 1915 switches::kDisableVrShell)},
1918 {"enable-android-pay-integration-v1", 1916 {"enable-android-pay-integration-v1",
1919 IDS_FLAGS_ENABLE_ANDROID_PAY_INTEGRATION_V1_NAME, 1917 IDS_FLAGS_ENABLE_ANDROID_PAY_INTEGRATION_V1_NAME,
1920 IDS_FLAGS_ENABLE_ANDROID_PAY_INTEGRATION_V1_DESCRIPTION, kOsAndroid, 1918 IDS_FLAGS_ENABLE_ANDROID_PAY_INTEGRATION_V1_DESCRIPTION, kOsAndroid,
1921 FEATURE_VALUE_TYPE(chrome::android::kAndroidPayIntegrationV1)}, 1919 FEATURE_VALUE_TYPE(chrome::android::kAndroidPayIntegrationV1)},
1922 #endif 1920 #endif
1923 {"enable-weak-memorycache", 1921 {"enable-weak-memorycache",
1924 IDS_FLAGS_ENABLE_WEAK_MEMORYCACHE_NAME, 1922 IDS_FLAGS_ENABLE_WEAK_MEMORYCACHE_NAME,
1925 IDS_FLAGS_ENABLE_WEAK_MEMORYCACHE_DESCRIPTION, kOsAll, 1923 IDS_FLAGS_ENABLE_WEAK_MEMORYCACHE_DESCRIPTION, kOsAll,
1926 FEATURE_VALUE_TYPE(features::kWeakMemoryCache)}, 1924 FEATURE_VALUE_TYPE(features::kWeakMemoryCache)},
1925 #if defined(OS_CHROMEOS)
1926 {"enable-eol-notification", IDS_FLAGS_ENABLE_EOL_NOTIFICATION_NAME,
1927 IDS_FLAGS_ENABLE_EOL_NOTIFICATION_DESCRIPTION, kOsCrOS,
1928 SINGLE_VALUE_TYPE(chromeos::switches::kEnableEolNotification)},
1929 #endif // defined(OS_CHROMEOS)
1927 1930
1928 // NOTE: Adding new command-line switches requires adding corresponding 1931 // NOTE: Adding new command-line switches requires adding corresponding
1929 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 1932 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
1930 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 1933 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
1931 }; 1934 };
1932 1935
1933 class FlagsStateSingleton { 1936 class FlagsStateSingleton {
1934 public: 1937 public:
1935 FlagsStateSingleton() 1938 FlagsStateSingleton()
1936 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 1939 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
2123 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2126 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2124 2127
2125 const FeatureEntry* GetFeatureEntries(size_t* count) { 2128 const FeatureEntry* GetFeatureEntries(size_t* count) {
2126 *count = arraysize(kFeatureEntries); 2129 *count = arraysize(kFeatureEntries);
2127 return kFeatureEntries; 2130 return kFeatureEntries;
2128 } 2131 }
2129 2132
2130 } // namespace testing 2133 } // namespace testing
2131 2134
2132 } // namespace about_flags 2135 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698