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

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

Issue 23039015: Web MIDI: enable midi_host.cc implementation on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698