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

Unified Diff: chrome/browser/media/media_stream_devices_controller.h

Issue 502483002: Check policy when checking device access for enumerating devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added dchecks 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
Index: chrome/browser/media/media_stream_devices_controller.h
diff --git a/chrome/browser/media/media_stream_devices_controller.h b/chrome/browser/media/media_stream_devices_controller.h
index 01e68492e00048f931d6047c6d89d233d3909aa3..54a1e38742dd34878c7ba20f4f00eee47506cc30 100644
--- a/chrome/browser/media/media_stream_devices_controller.h
+++ b/chrome/browser/media/media_stream_devices_controller.h
@@ -84,17 +84,6 @@ class MediaStreamDevicesController : public PermissionBubbleRequest {
virtual void RequestFinished() OVERRIDE;
private:
- enum DevicePolicy {
- POLICY_NOT_SET,
- ALWAYS_DENY,
- ALWAYS_ALLOW,
- };
-
- // Called by GetAudioDevicePolicy and GetVideoDevicePolicy to check
- // the currently set capture device policy.
- DevicePolicy GetDevicePolicy(const char* policy_name,
- const char* whitelist_policy_name) const;
-
// Returns true if the origin of the request has been granted the media
// access before, otherwise returns false.
bool IsRequestAllowedByDefault() const;

Powered by Google App Engine
This is Rietveld 408576698