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

Unified Diff: media/midi/midi_manager.h

Issue 323323002: Web MIDI: MidiManager crashes if a session is ended while initializing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make_pair 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 | « no previous file | media/midi/midi_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/midi/midi_manager.h
diff --git a/media/midi/midi_manager.h b/media/midi/midi_manager.h
index f6c424b9e6f66c9525136bce6ec77ebb44d91ab0..9fd7a21ed38be1b6715e136fc52cbd6bb5961b12 100644
--- a/media/midi/midi_manager.h
+++ b/media/midi/midi_manager.h
@@ -152,7 +152,7 @@ class MEDIA_EXPORT MidiManager {
ClientList clients_;
// Keeps track of all clients who are waiting for CompleteStartSession().
- typedef std::map<int, MidiManagerClient*> PendingClientMap;
+ typedef std::multimap<MidiManagerClient*, int> PendingClientMap;
PendingClientMap pending_clients_;
// Keeps a SingleThreadTaskRunner of the thread that calls StartSession in
« no previous file with comments | « no previous file | media/midi/midi_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698