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

Unified Diff: media/midi/midi_manager.cc

Issue 2170463003: Web MIDI: Add CHECK()s to ensure MidiManager owned threads are terminated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review #11 Created 4 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 | « no previous file | media/midi/midi_manager_alsa.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/midi/midi_manager.cc
diff --git a/media/midi/midi_manager.cc b/media/midi/midi_manager.cc
index 12d4d0764524a5bd845e1146c942f1ec3a21cf1f..fcbaa55a03b027b4a86809336909f18ddf0d7590 100644
--- a/media/midi/midi_manager.cc
+++ b/media/midi/midi_manager.cc
@@ -60,7 +60,8 @@ MidiManager::MidiManager()
MidiManager::~MidiManager() {
// Make sure that Finalize() is called to clean up resources allocated on
// the Chrome_IOThread.
- DCHECK(finalized_);
+ base::AutoLock auto_lock(lock_);
+ CHECK(finalized_);
}
#if !defined(OS_MACOSX) && !defined(OS_WIN) && \
« no previous file with comments | « no previous file | media/midi/midi_manager_alsa.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698