Index: content/browser/renderer_host/media/midi_host.cc |
diff --git a/content/browser/renderer_host/media/midi_host.cc b/content/browser/renderer_host/media/midi_host.cc |
index 6ed473afeff10538ef4ee2b8fb7db5ce3b5beccb..d059916514318a5b0f325122caa98c24e2825b08 100644 |
--- a/content/browser/renderer_host/media/midi_host.cc |
+++ b/content/browser/renderer_host/media/midi_host.cc |
@@ -110,17 +110,12 @@ void MIDIHost::OnSendData(int port, |
if (data.size() > 0 && data[0] >= kSysExMessage) |
return; |
-#if defined(OS_ANDROID) |
- // TODO(toyoshim): figure out why data() method does not compile on Android. |
scherkus (not reviewing)
2013/08/19 17:28:20
AFAIK data() is part of C++11 :)
Takashi Toyoshima
2013/08/19 18:03:40
Agreed. http://www.cplusplus.com/reference/vector/
|
- NOTIMPLEMENTED(); |
-#else |
midi_manager_->DispatchSendMIDIData( |
this, |
port, |
- data.data(), |
+ &data.front(), |
scherkus (not reviewing)
2013/08/19 17:28:20
FYI technically this would segfault calling front(
Takashi Toyoshima
2013/08/19 18:03:40
Oh, I didn't think empty cases.
Actually, a render
|
data.size(), |
timestamp); |
-#endif |
sent_bytes_in_flight_ += data.size(); |
} |