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

Unified Diff: content/browser/renderer_host/media/midi_dispatcher_host.cc

Issue 22391002: Web MIDI: Use Send() directly for MIDIMsg_SysExPermissionApproved (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/midi_dispatcher_host.cc
diff --git a/content/browser/renderer_host/media/midi_dispatcher_host.cc b/content/browser/renderer_host/media/midi_dispatcher_host.cc
index 4771eb58cc6fa02eb59e3d4e83f4b9993b42853b..8ecbabcd47d56ff688d1e87d41441de67a743ecf 100644
--- a/content/browser/renderer_host/media/midi_dispatcher_host.cc
+++ b/content/browser/renderer_host/media/midi_dispatcher_host.cc
@@ -57,12 +57,7 @@ void MIDIDispatcherHost::OnRequestSysExPermission(int render_view_id,
void MIDIDispatcherHost::WasSysExPermissionGranted(int render_view_id,
int client_id,
bool success) {
- RenderViewHostImpl* r =
- RenderViewHostImpl::FromID(render_process_id_, render_view_id);
- if (!r)
- return;
- r->Send(
- new MIDIMsg_SysExPermissionApproved(render_view_id, client_id, success));
+ Send(new MIDIMsg_SysExPermissionApproved(render_view_id, client_id, success));
}
} // namespace content
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698