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

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

Issue 1722283002: about_flags.cc entry for WebRTC-H264WithOpenH264FFmpeg (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit, moved flag to bottom of about_flags list Created 4 years, 9 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #include "components/password_manager/core/common/password_manager_features.h" 47 #include "components/password_manager/core/common/password_manager_features.h"
48 #include "components/password_manager/core/common/password_manager_switches.h" 48 #include "components/password_manager/core/common/password_manager_switches.h"
49 #include "components/proximity_auth/switches.h" 49 #include "components/proximity_auth/switches.h"
50 #include "components/search/search_switches.h" 50 #include "components/search/search_switches.h"
51 #include "components/security_state/switches.h" 51 #include "components/security_state/switches.h"
52 #include "components/signin/core/common/signin_switches.h" 52 #include "components/signin/core/common/signin_switches.h"
53 #include "components/sync_driver/sync_driver_switches.h" 53 #include "components/sync_driver/sync_driver_switches.h"
54 #include "components/tracing/tracing_switches.h" 54 #include "components/tracing/tracing_switches.h"
55 #include "components/version_info/version_info.h" 55 #include "components/version_info/version_info.h"
56 #include "content/public/browser/user_metrics.h" 56 #include "content/public/browser/user_metrics.h"
57 #include "content/public/common/content_features.h" 57 #include "content/public/common/content_features.h"
hbos_chromium 2016/02/25 15:20:16 (I noticed content/public/common/features.h is a l
jochen (gone - plz use gerrit) 2016/02/26 12:09:00 those are runtime enabled features
hbos_chromium 2016/02/26 14:13:34 *Meant to say content_features.h is a list of base
58 #include "content/public/common/content_switches.h" 58 #include "content/public/common/content_switches.h"
59 #include "content/public/common/feature_h264_with_openh264_ffmpeg.h"
60 #include "content/public/common/features.h"
59 #include "grit/components_strings.h" 61 #include "grit/components_strings.h"
60 #include "media/base/media_switches.h" 62 #include "media/base/media_switches.h"
61 #include "media/midi/midi_switches.h" 63 #include "media/midi/midi_switches.h"
62 #include "ui/base/l10n/l10n_util.h" 64 #include "ui/base/l10n/l10n_util.h"
63 #include "ui/base/ui_base_switches.h" 65 #include "ui/base/ui_base_switches.h"
64 #include "ui/compositor/compositor_switches.h" 66 #include "ui/compositor/compositor_switches.h"
65 #include "ui/display/display_switches.h" 67 #include "ui/display/display_switches.h"
66 #include "ui/events/event_switches.h" 68 #include "ui/events/event_switches.h"
67 #include "ui/gfx/switches.h" 69 #include "ui/gfx/switches.h"
68 #include "ui/gl/gl_switches.h" 70 #include "ui/gl/gl_switches.h"
(...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after
1794 switches::kUIDisableCompositorAnimationTimelines)}, 1796 switches::kUIDisableCompositorAnimationTimelines)},
1795 #endif // !defined(OS_ANDROID) 1797 #endif // !defined(OS_ANDROID)
1796 {"enable-audio-support-for-desktop-share", 1798 {"enable-audio-support-for-desktop-share",
1797 IDS_FLAG_ENABLE_AUDIO_FOR_DESKTOP_SHARE, 1799 IDS_FLAG_ENABLE_AUDIO_FOR_DESKTOP_SHARE,
1798 IDS_FLAG_ENABLE_AUDIO_FOR_DESKTOP_SHARE_DESCRIPTION, 1800 IDS_FLAG_ENABLE_AUDIO_FOR_DESKTOP_SHARE_DESCRIPTION,
1799 kOsAll, 1801 kOsAll,
1800 SINGLE_VALUE_TYPE(switches::kEnableAudioSupportForDesktopShare)}, 1802 SINGLE_VALUE_TYPE(switches::kEnableAudioSupportForDesktopShare)},
1801 #if defined(ENABLE_EXTENSIONS) 1803 #if defined(ENABLE_EXTENSIONS)
1802 {"enable-tab-for-desktop-share", IDS_FLAG_ENABLE_TAB_FOR_DESKTOP_SHARE, 1804 {"enable-tab-for-desktop-share", IDS_FLAG_ENABLE_TAB_FOR_DESKTOP_SHARE,
1803 IDS_FLAG_ENABLE_TAB_FOR_DESKTOP_SHARE_DESCRIPTION, kOsAll, 1805 IDS_FLAG_ENABLE_TAB_FOR_DESKTOP_SHARE_DESCRIPTION, kOsAll,
1804 SINGLE_VALUE_TYPE(extensions::switches::kEnableTabForDesktopShare)} 1806 SINGLE_VALUE_TYPE(extensions::switches::kEnableTabForDesktopShare)},
1805 #endif 1807 #endif
1806 #if defined(OS_ANDROID) 1808 #if defined(OS_ANDROID)
1807 {"enable-ntp-snippets", IDS_FLAGS_ENABLE_NTP_SNIPPETS_NAME, 1809 {"enable-ntp-snippets", IDS_FLAGS_ENABLE_NTP_SNIPPETS_NAME,
1808 IDS_FLAGS_ENABLE_NTP_SNIPPETS_DESCRIPTION, kOsAndroid, 1810 IDS_FLAGS_ENABLE_NTP_SNIPPETS_DESCRIPTION, kOsAndroid,
1809 FEATURE_VALUE_TYPE(chrome::android::kNTPSnippetsFeature)}, 1811 FEATURE_VALUE_TYPE(chrome::android::kNTPSnippetsFeature)},
1810 #endif // defined(OS_ANDROID) 1812 #endif // defined(OS_ANDROID)
1813 #if defined(ENABLE_WEBRTC) && BUILDFLAG(RTC_USE_H264)
1814 {"enable-webrtc-h264-with-openh264-ffmpeg",
1815 IDS_FLAGS_WEBRTC_H264_WITH_OPENH264_FFMPEG_NAME,
1816 IDS_FLAGS_WEBRTC_H264_WITH_OPENH264_FFMPEG_DESCRIPTION,
1817 kOsMac | kOsWin | kOsLinux | kOsCrOS,
1818 FEATURE_VALUE_TYPE(content::kWebRtcH264WithOpenH264FFmpeg)},
1819 #endif // defined(ENABLE_WEBRTC) && BUILDFLAG(RTC_USE_H264)
1811 // NOTE: Adding new command-line switches requires adding corresponding 1820 // NOTE: Adding new command-line switches requires adding corresponding
1812 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 1821 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
jochen (gone - plz use gerrit) 2016/02/26 12:09:00 wow, such comment so little attention payed
hbos_chromium 2016/02/26 14:13:34 Lol, thanks. Either missed it or thought it didn't
rkaplow 2016/03/01 19:17:28 Not entirely sure. I would guess 2/3 were omission
1813 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 1822 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
1814 }; 1823 };
1815 1824
1816 class FlagsStateSingleton { 1825 class FlagsStateSingleton {
1817 public: 1826 public:
1818 FlagsStateSingleton() 1827 FlagsStateSingleton()
1819 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 1828 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
1820 ~FlagsStateSingleton() {} 1829 ~FlagsStateSingleton() {}
1821 1830
1822 static FlagsStateSingleton* GetInstance() { 1831 static FlagsStateSingleton* GetInstance() {
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
2022 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2031 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2023 2032
2024 const FeatureEntry* GetFeatureEntries(size_t* count) { 2033 const FeatureEntry* GetFeatureEntries(size_t* count) {
2025 *count = arraysize(kFeatureEntries); 2034 *count = arraysize(kFeatureEntries);
2026 return kFeatureEntries; 2035 return kFeatureEntries;
2027 } 2036 }
2028 2037
2029 } // namespace testing 2038 } // namespace testing
2030 2039
2031 } // namespace about_flags 2040 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698