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

Unified Diff: chrome/common/pref_names.cc

Issue 15738004: Add a policy list for access to capture devices (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change capture policy values to be per-profile. Created 7 years, 7 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
Index: chrome/common/pref_names.cc
diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc
index 42c4232821d8767ce899fc8aefb6189955e05728..a164fa6fcf8e5c3d8cec62efcc47ed3b50ee5a68 100644
--- a/chrome/common/pref_names.cc
+++ b/chrome/common/pref_names.cc
@@ -2010,15 +2010,23 @@ const char kDailyHttpReceivedContentLength[] =
// date of the last update to |kDailyHttp{Original,Received}ContentLength|.
const char kDailyHttpContentLengthLastUpdateDate[] =
"data_reduction.last_update_date";
-#endif
+#endif // defined(OS_ANDROID) || defined(OS_IOS)
-// A pref holding the value of the policy used to disable capturing audio on
-// ChromeOS devices.
+// A pref holding the value of the policy used to explicitly allow or deny
+// access to audio capture devices. When enabled, this works in conjunction
+// with the kAudioCaptureAllowedUrls policy list.
const char kAudioCaptureAllowed[] = "hardware.audio_capture_enabled";
+// Holds the whitelisted URL patterns that we refer to when kAudioCaptureAllowed
+// is enabled.
+const char kAudioCaptureAllowedUrls[] = "hardware.audio_capture_allowed_urls";
-// A pref holding the value of the policy used to disable capturing audio on
-// ChromeOS devices.
+// A pref holding the value of the policy used to explicitly allow or deny
+// access to video capture devices. When enabled, this works in conjunction
+// with the kVideoCaptureAllowedUrls policy list.
const char kVideoCaptureAllowed[] = "hardware.video_capture_enabled";
+// Holds the whitelisted URL patterns that we refer to when kVideoCaptureAllowed
+// is enabled.
+const char kVideoCaptureAllowedUrls[] = "hardware.video_capture_allowed_urls";
#if defined(OS_CHROMEOS)
// Dictionary for transient storage of settings that should go into device

Powered by Google App Engine
This is Rietveld 408576698