Index: chrome/browser/profiles/profile_impl.cc |
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
index 64492fcd1b1e8a09aef67c6eb7e8124df8d4505a..09be43e1a5ef2c629ce077993c6ce32412f2e9b1 100644 |
--- a/chrome/browser/profiles/profile_impl.cc |
+++ b/chrome/browser/profiles/profile_impl.cc |
@@ -44,6 +44,8 @@ |
#include "chrome/browser/geolocation/chrome_geolocation_permission_context_factory.h" |
#include "chrome/browser/history/shortcuts_backend.h" |
#include "chrome/browser/history/top_sites.h" |
+#include "chrome/browser/media/chrome_midi_permission_context.h" |
+#include "chrome/browser/media/chrome_midi_permission_context_factory.h" |
#include "chrome/browser/metrics/metrics_service.h" |
#include "chrome/browser/net/chrome_url_request_context.h" |
#include "chrome/browser/net/net_pref_observer.h" |
@@ -867,8 +869,12 @@ void ProfileImpl::RequestMIDISysExPermission( |
int render_view_id, |
const GURL& requesting_frame, |
const MIDISysExPermissionCallback& callback) { |
- // TODO(toyoshim): Implement. http://crbug.com/257618 . |
- callback.Run(false); |
+ ChromeMIDIPermissionContext* context = |
+ ChromeMIDIPermissionContextFactory::GetForProfile(this); |
+ context->RequestMIDISysExPermission(render_process_id, |
+ render_view_id, |
+ requesting_frame, |
+ callback); |
} |
content::ResourceContext* ProfileImpl::GetResourceContext() { |