Index: chrome/browser/profiles/off_the_record_profile_impl.cc |
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc |
index a14d3ab183eab9053b3a94bbef20a334d9fd1c44..1c8acf5cbdb5919a5b95eb91efef9b945a83276c 100644 |
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc |
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc |
@@ -28,6 +28,8 @@ |
#include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" |
#include "chrome/browser/geolocation/chrome_geolocation_permission_context_factory.h" |
#include "chrome/browser/io_thread.h" |
+#include "chrome/browser/media/chrome_midi_permission_context.h" |
+#include "chrome/browser/media/chrome_midi_permission_context_factory.h" |
#include "chrome/browser/net/pref_proxy_config_tracker.h" |
#include "chrome/browser/net/proxy_service_factory.h" |
#include "chrome/browser/plugins/chrome_plugin_service_filter.h" |
@@ -286,8 +288,12 @@ void OffTheRecordProfileImpl::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); |
} |
net::URLRequestContextGetter* |