Index: chrome/browser/profiles/profile_impl.cc |
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
index b5b0b8d13de9629c23e990b971c086c01ba1e9e2..0626671935e14b8938c11b49d67dc10dcc2954f5 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" |
@@ -863,8 +865,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() { |