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

Unified Diff: chrome/browser/about_flags.cc

Issue 460113006: Mac Video Capture: expose --enable-avfoundation as tristate in chrome://flags (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: #ifdef using AVfoundation switches Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/video/capture/mac/avfoundation_glue.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 6f2a3f18279c67608852de17cd6032dfd2ad8509..5b96d2d3729073745facb01b0b85b4d865235e8b 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -489,6 +489,14 @@ const Experiment::Choice kEnableDropSyncCredentialChoices[] = {
password_manager::switches::kDisableDropSyncCredential, "" },
};
+#if defined(OS_MACOSX)
+const Experiment::Choice kEnableAVFoundationChoices[] = {
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
+ { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, switches::kEnableAVFoundation, ""},
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, switches::kForceQTKit, ""}
+};
+#endif
+
// RECORDING USER METRICS FOR FLAGS:
// -----------------------------------------------------------------------------
// The first line of the experiment is the internal name. If you'd like to
@@ -1214,7 +1222,7 @@ const Experiment kExperiments[] = {
IDS_FLAGS_ENABLE_AVFOUNDATION_NAME,
IDS_FLAGS_ENABLE_AVFOUNDATION_DESCRIPTION,
kOsMac,
- SINGLE_VALUE_TYPE(switches::kEnableAVFoundation)
+ MULTI_VALUE_TYPE(kEnableAVFoundationChoices)
},
#endif
{
« no previous file with comments | « no previous file | media/video/capture/mac/avfoundation_glue.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698