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

Unified Diff: content/renderer/media/midi_dispatcher.cc

Issue 365123003: Implement midi permissions on top of the new common permission classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/midi_dispatcher.cc
diff --git a/content/renderer/media/midi_dispatcher.cc b/content/renderer/media/midi_dispatcher.cc
index cbbd876332b963b614c394b0dcf8b57c9d1e144f..84d10f7fc3e37b3776b1797016d0bb9a36306d30 100644
--- a/content/renderer/media/midi_dispatcher.cc
+++ b/content/renderer/media/midi_dispatcher.cc
@@ -50,7 +50,8 @@ void MidiDispatcher::cancelSysexPermissionRequest(
base::string16 origin = request.securityOrigin().toString();
Send(new MidiHostMsg_CancelSysExPermissionRequest(
routing_id(), it.GetCurrentKey(), GURL(origin)));
- requests_.Remove(it.GetCurrentKey());
+ // The request will be removed by OnSysExPermissionApproved once
+ // the blink MIDIAccessInitializer object is deleted.
break;
}
}
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698