Add a PermissionContext subclass for the midi permission
This adds a PermissionContext subclass for the midi permission, removing the
special casing from PermissionManager. This is necessary because the midi
permission will have a feature policy associated with it and feature policy
will take effect in the PermissionContext subclass in
GetPermissionStatusInternal. It needs to live here so that the permission
status checks in PermissionContextBase::RequestPermission return the
correct values. It is also just where all other permission checks live (like
secure origin, kill switch, etc.).
BUG=689802
Review-Url: https://codereview.chromium.org/2897833002
Cr-Commit-Position: refs/heads/master@{#475272}
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index c66a68d1..b259642 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -577,6 +577,8 @@
"media/media_url_constants.h",
"media/midi_permission_context.cc",
"media/midi_permission_context.h",
+ "media/midi_sysex_permission_context.cc",
+ "media/midi_sysex_permission_context.h",
"media/output_protection_proxy.cc",
"media/output_protection_proxy.h",
"media/router/media_router_feature.cc",