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

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

Issue 2039773003: [Android] Added a runtime flag to enable autoplay of muted videos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed the flag to autoplay-muted-videos 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 1875 matching lines...) Expand 10 before | Expand all | Expand 10 after
1886 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableFullscreenTabDetaching, 1886 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableFullscreenTabDetaching,
1887 switches::kDisableFullscreenTabDetaching)}, 1887 switches::kDisableFullscreenTabDetaching)},
1888 #endif 1888 #endif
1889 #if defined(OS_ANDROID) 1889 #if defined(OS_ANDROID)
1890 {"media-style-notification", IDS_FLAGS_MEDIA_STYLE_NOTIFICATION_NAME, 1890 {"media-style-notification", IDS_FLAGS_MEDIA_STYLE_NOTIFICATION_NAME,
1891 IDS_FLAGS_MEDIA_STYLE_NOTIFICATION_DESCRIPTION, kOsAndroid, 1891 IDS_FLAGS_MEDIA_STYLE_NOTIFICATION_DESCRIPTION, kOsAndroid,
1892 FEATURE_VALUE_TYPE(chrome::android::kMediaStyleNotification)}, 1892 FEATURE_VALUE_TYPE(chrome::android::kMediaStyleNotification)},
1893 {"important-sites-in-cbd", IDS_FLAGS_IMPORTANT_SITES_IN_CBD_NAME, 1893 {"important-sites-in-cbd", IDS_FLAGS_IMPORTANT_SITES_IN_CBD_NAME,
1894 IDS_FLAGS_IMPORTANT_SITES_IN_CBD_DESCRIPTION, kOsAndroid, 1894 IDS_FLAGS_IMPORTANT_SITES_IN_CBD_DESCRIPTION, kOsAndroid,
1895 FEATURE_VALUE_TYPE(chrome::android::kImportantSitesInCBD)}, 1895 FEATURE_VALUE_TYPE(chrome::android::kImportantSitesInCBD)},
1896 {"enable-autoplay-muted-videos",
1897 IDS_FLAGS_ENABLE_AUTOPLAY_MUTED_VIDEOS_NAME,
1898 IDS_FLAGS_ENABLE_AUTOPLAY_MUTED_VIDEOS_DESCRIPTION,
1899 kOsAndroid,
1900 SINGLE_VALUE_TYPE(switches::kEnableAutoplayMutedVideos)},
1896 #endif 1901 #endif
1897 {"enable-pointer-events", // FLAGS:RECORD_UMA 1902 {"enable-pointer-events", // FLAGS:RECORD_UMA
1898 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_NAME, 1903 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_NAME,
1899 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_DESCRIPTION, kOsAll, 1904 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_DESCRIPTION, kOsAll,
1900 FEATURE_VALUE_TYPE(features::kPointerEvents)}, 1905 FEATURE_VALUE_TYPE(features::kPointerEvents)},
1901 {"passive-listener-default", // FLAGS:RECORD_UMA 1906 {"passive-listener-default", // FLAGS:RECORD_UMA
1902 IDS_FLAGS_PASSIVE_EVENT_LISTENER_DEFAULT_NAME, 1907 IDS_FLAGS_PASSIVE_EVENT_LISTENER_DEFAULT_NAME,
1903 IDS_FLAGS_PASSIVE_EVENT_LISTENER_DEFAULT_DESCRIPTION, kOsAll, 1908 IDS_FLAGS_PASSIVE_EVENT_LISTENER_DEFAULT_DESCRIPTION, kOsAll,
1904 MULTI_VALUE_TYPE(kPassiveListenersChoices)}, 1909 MULTI_VALUE_TYPE(kPassiveListenersChoices)},
1905 {"enable-loading-ipc-optimization-for-small-resources", 1910 {"enable-loading-ipc-optimization-for-small-resources",
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
2107 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2112 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2108 2113
2109 const FeatureEntry* GetFeatureEntries(size_t* count) { 2114 const FeatureEntry* GetFeatureEntries(size_t* count) {
2110 *count = arraysize(kFeatureEntries); 2115 *count = arraysize(kFeatureEntries);
2111 return kFeatureEntries; 2116 return kFeatureEntries;
2112 } 2117 }
2113 2118
2114 } // namespace testing 2119 } // namespace testing
2115 2120
2116 } // namespace about_flags 2121 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698