Index: media/midi/midi_manager_usb.cc |
diff --git a/media/midi/midi_manager_usb.cc b/media/midi/midi_manager_usb.cc |
index 1a6e2976be79b013791c2c5b8f06cecdd37c0c6f..19d389ea497790d413a9320e129d6d408f00ca8a 100644 |
--- a/media/midi/midi_manager_usb.cc |
+++ b/media/midi/midi_manager_usb.cc |
@@ -76,7 +76,7 @@ void MidiManagerUsb::ReceiveUsbMidiData(UsbMidiDevice* device, |
void MidiManagerUsb::OnDeviceAttached(scoped_ptr<UsbMidiDevice> device) { |
int device_id = static_cast<int>(devices_.size()); |
- devices_.push_back(device.release()); |
+ devices_.push_back(device.Pass()); |
AddPorts(devices_.back(), device_id); |
} |