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

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

Issue 1153873003: Add way for PermissionContext to be automatically restricted to secure origins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@midi_permission_sysex
Patch Set: Created 5 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/browser/media/protected_media_identifier_permission_context.h
diff --git a/chrome/browser/media/protected_media_identifier_permission_context.h b/chrome/browser/media/protected_media_identifier_permission_context.h
index 1c438ec05f0bf604bce8dfd4e99bff90cc31cc29..dad2385b1d659bf16c1127791a980d42f4543871 100644
--- a/chrome/browser/media/protected_media_identifier_permission_context.h
+++ b/chrome/browser/media/protected_media_identifier_permission_context.h
@@ -57,6 +57,7 @@ class ProtectedMediaIdentifierPermissionContext
void UpdateTabContext(const PermissionRequestID& id,
const GURL& requesting_frame,
bool allowed) override;
+ bool RestrictToSecureOrigins() const override;
// Returns whether "Protected content" is enabled based on factors other
// than the protected media identifier content setting itself. For example,
@@ -64,6 +65,7 @@ class ProtectedMediaIdentifierPermissionContext
// guest mode, or by the device policy.
bool IsProtectedMediaIdentifierEnabled() const;
+
ddorwin 2015/05/26 17:31:31 nit: extra line.
mlamouri (slow - plz ping) 2015/05/29 14:35:15 Done.
#if defined(OS_CHROMEOS)
void OnPlatformVerificationConsentResponse(
content::WebContents* web_contents,

Powered by Google App Engine
This is Rietveld 408576698