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

Unified Diff: chrome/browser/media/media_stream_device_permissions.cc

Issue 965103004: Stop using the MEDIASTREAM content setting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated policy Created 5 years, 10 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/browser/media/media_stream_device_permissions.cc
diff --git a/chrome/browser/media/media_stream_device_permissions.cc b/chrome/browser/media/media_stream_device_permissions.cc
index c8ff9a36b86d3ee8998d9f45b3c3e47a2cb34abb..6ce1c7b989de25ab2bec226f30047a4de5fb6dec 100644
--- a/chrome/browser/media/media_stream_device_permissions.cc
+++ b/chrome/browser/media/media_stream_device_permissions.cc
@@ -36,12 +36,12 @@ bool IsInKioskMode() {
} // namespace
bool CheckAllowAllMediaStreamContentForOrigin(Profile* profile,
- const GURL& security_origin) {
- // TODO(markusheintz): Replace CONTENT_SETTINGS_TYPE_MEDIA_STREAM with the
- // appropriate new CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC and
- // CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA.
+ const GURL& security_origin,
+ ContentSettingsType type) {
+ DCHECK(type == CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC ||
msramek 2015/03/05 16:19:38 The previous implementation which used MEDIASTREAM
+ type == CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA);
return profile->GetHostContentSettingsMap()->ShouldAllowAllContent(
- security_origin, security_origin, CONTENT_SETTINGS_TYPE_MEDIASTREAM);
+ security_origin, security_origin, type);
}
MediaStreamDevicePolicy GetDevicePolicy(Profile* profile,

Powered by Google App Engine
This is Rietveld 408576698