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

Unified Diff: media/midi/usb_midi_device.h

Issue 2893953002: Revert of Remove ScopedVector from all other codes in media/ (Closed)
Patch Set: Created 3 years, 7 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 | « media/midi/midi_manager_usb_unittest.cc ('k') | media/midi/usb_midi_device_factory_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/midi/usb_midi_device.h
diff --git a/media/midi/usb_midi_device.h b/media/midi/usb_midi_device.h
index c86baec23f55c64826f1c6675b80554d6ac05c65..1778db6bc78cd24244f09433d61587725b12a323 100644
--- a/media/midi/usb_midi_device.h
+++ b/media/midi/usb_midi_device.h
@@ -12,6 +12,7 @@
#include <vector>
#include "base/callback.h"
+#include "base/memory/scoped_vector.h"
#include "base/time/time.h"
#include "media/midi/usb_midi_export.h"
@@ -43,7 +44,7 @@
// will be a derived class.
class USB_MIDI_EXPORT UsbMidiDevice {
public:
- typedef std::vector<std::unique_ptr<UsbMidiDevice>> Devices;
+ typedef ScopedVector<UsbMidiDevice> Devices;
// Factory class for USB-MIDI devices.
// Each concrete implementation will find and create devices
« no previous file with comments | « media/midi/midi_manager_usb_unittest.cc ('k') | media/midi/usb_midi_device_factory_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698