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

Unified Diff: content/renderer/media/midi_message_filter.cc

Issue 661323002: Web MIDI: use new Blink APIs to be free from depracated ones (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review #3 Created 6 years, 2 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 | content/shell/renderer/test_runner/mock_web_midi_accessor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/midi_message_filter.cc
diff --git a/content/renderer/media/midi_message_filter.cc b/content/renderer/media/midi_message_filter.cc
index e6a7f8067beff37bea082b5ce503a6ef75567208..165451a50f695fc34bb7cc8d33d56d5f07a0bb7c 100644
--- a/content/renderer/media/midi_message_filter.cc
+++ b/content/renderer/media/midi_message_filter.cc
@@ -121,12 +121,14 @@ void MidiMessageFilter::HandleSessionStarted(
if (result == media::MIDI_OK) {
// Add the client's input and output ports.
+ const bool active = true;
Takashi Toyoshima 2014/10/20 06:41:29 did the same fix here.
for (size_t i = 0; i < inputs.size(); ++i) {
client->didAddInputPort(
base::UTF8ToUTF16(inputs[i].id),
base::UTF8ToUTF16(inputs[i].manufacturer),
base::UTF8ToUTF16(inputs[i].name),
- base::UTF8ToUTF16(inputs[i].version));
+ base::UTF8ToUTF16(inputs[i].version),
+ active);
}
for (size_t i = 0; i < outputs.size(); ++i) {
@@ -134,7 +136,8 @@ void MidiMessageFilter::HandleSessionStarted(
base::UTF8ToUTF16(outputs[i].id),
base::UTF8ToUTF16(outputs[i].manufacturer),
base::UTF8ToUTF16(outputs[i].name),
- base::UTF8ToUTF16(outputs[i].version));
+ base::UTF8ToUTF16(outputs[i].version),
+ active);
}
}
std::string error;
« no previous file with comments | « no previous file | content/shell/renderer/test_runner/mock_web_midi_accessor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698