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

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

Issue 323083002: [WebMIDI] Fix a WebMIDIPermissionRequest leak. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « content/renderer/media/midi_dispatcher.h ('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 c8903ac3ef5c217cecb5eff6f109f7e274991f76..0e118087891706abede9a0a51e4c0e7f76f4babe 100644
--- a/content/renderer/media/midi_dispatcher.cc
+++ b/content/renderer/media/midi_dispatcher.cc
@@ -44,9 +44,7 @@ void MidiDispatcher::requestSysexPermission(
void MidiDispatcher::cancelSysexPermissionRequest(
const WebMIDIPermissionRequest& request) {
- for (IDMap<WebMIDIPermissionRequest>::iterator it(&requests_);
- !it.IsAtEnd();
- it.Advance()) {
+ for (Requests::iterator it(&requests_); !it.IsAtEnd(); it.Advance()) {
WebMIDIPermissionRequest* value = it.GetCurrentValue();
if (value->equals(request)) {
base::string16 origin = request.securityOrigin().toString();
« no previous file with comments | « content/renderer/media/midi_dispatcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698