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

Unified Diff: content/browser/media/midi_host.cc

Issue 2742333002: Remove ScopedVector from content/browser/ [1]. (Closed)
Patch Set: Created 3 years, 9 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
Index: content/browser/media/midi_host.cc
diff --git a/content/browser/media/midi_host.cc b/content/browser/media/midi_host.cc
index d85dc7d9a68bb250e0c2d8843a038f8ceb9b9e56..029f206914ef106455f8dd449238b5c0c7329807 100644
--- a/content/browser/media/midi_host.cc
+++ b/content/browser/media/midi_host.cc
@@ -6,6 +6,7 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
+#include "base/memory/ptr_util.h"
#include "base/process/process.h"
#include "base/trace_event/trace_event.h"
#include "content/browser/bad_message.h"
@@ -181,7 +182,8 @@ void MidiHost::ReceiveMidiData(uint32_t port,
// Lazy initialization
if (received_messages_queues_[port] == nullptr)
- received_messages_queues_[port] = new midi::MidiMessageQueue(true);
+ received_messages_queues_[port] =
+ base::MakeUnique<midi::MidiMessageQueue>(true);
received_messages_queues_[port]->Add(data, length);
std::vector<uint8_t> message;

Powered by Google App Engine
This is Rietveld 408576698