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

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

Issue 483523006: Check all settings when checking mic and camera access (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix for Android. 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..d3c9dfe2ad2997a001596d7c52172e328230c1a1 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;
@@ -113,10 +102,6 @@ class MediaStreamDevicesController : public PermissionBubbleRequest {
// Returns true if the origin is a secure scheme, otherwise returns false.
bool IsSchemeSecure() const;
- // Returns true if request's origin is from internal objects like
- // chrome://URLs, otherwise returns false.
- bool ShouldAlwaysAllowOrigin() const;
-
// Sets the permission of the origin of the request. This is triggered when
// the users deny the request or allow the request for https sites.
void SetPermission(bool allowed) const;

Powered by Google App Engine
This is Rietveld 408576698