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

Issue 2431393002: Web MIDI: move MIDI message validating logic into message_util.{cc|h} (Closed)

Created:
4 years, 2 months ago by Takashi Toyoshima
Modified:
4 years, 2 months ago
Reviewers:
yukawa
CC:
chromium-reviews, jam, darin-cc_chromium.org, toyoshim+midi_chromium.org, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Web MIDI: move MIDI message validating logic into message_util.{cc|h} There are two motivations for this changes: 1. To reduce duplicated message handling code 2. To simplify MidiHost to make coming mojofication change as much simple as possible Also this change rename midi_message_util to message_util since now that midi has a dedicated namespace. BUG=339749, 582327 Committed: https://crrev.com/698d79dd86089e67c1f678147f3172b4add13312 Cr-Commit-Position: refs/heads/master@{#426454}

Patch Set 1 #

Total comments: 6

Patch Set 2 : review #8 #

Patch Set 3 : build fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+287 lines, -301 lines) Patch
M content/browser/media/midi_host.h View 1 chunk +0 lines, -8 lines 0 comments Download
M content/browser/media/midi_host.cc View 5 chunks +7 lines, -50 lines 0 comments Download
M content/browser/media/midi_host_unittest.cc View 2 chunks +0 lines, -76 lines 0 comments Download
M media/midi/BUILD.gn View 3 chunks +3 lines, -3 lines 0 comments Download
A media/midi/message_util.h View 1 chunk +52 lines, -0 lines 0 comments Download
A media/midi/message_util.cc View 1 2 1 chunk +103 lines, -0 lines 0 comments Download
A media/midi/message_util_unittest.cc View 1 chunk +108 lines, -0 lines 0 comments Download
M media/midi/midi_manager_win.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M media/midi/midi_message_queue.cc View 1 4 chunks +11 lines, -28 lines 0 comments Download
D media/midi/midi_message_util.h View 1 chunk +0 lines, -36 lines 0 comments Download
D media/midi/midi_message_util.cc View 1 chunk +0 lines, -51 lines 0 comments Download
D media/midi/midi_message_util_unittest.cc View 1 chunk +0 lines, -46 lines 0 comments Download
M media/midi/usb_midi_output_stream.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (12 generated)
Takashi Toyoshima
Hi, yukawa. I'm asking you a review because you contributed very much to message validation ...
4 years, 2 months ago (2016-10-19 12:53:12 UTC) #3
yukawa
LGTM with minor comments. https://codereview.chromium.org/2431393002/diff/1/media/midi/message_util.cc File media/midi/message_util.cc (right): https://codereview.chromium.org/2431393002/diff/1/media/midi/message_util.cc#newcode94 media/midi/message_util.cc:94: waiting_data_length = midi::GetMessageLength(current); Can we ...
4 years, 2 months ago (2016-10-19 20:11:20 UTC) #8
Takashi Toyoshima
Thanks! Yeah, good catches. Also, I fixed one caller code for win to fix a ...
4 years, 2 months ago (2016-10-20 05:18:18 UTC) #9
yukawa
still LGTM.
4 years, 2 months ago (2016-10-20 05:20:44 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2431393002/20001
4 years, 2 months ago (2016-10-20 05:26:55 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/301916)
4 years, 2 months ago (2016-10-20 06:31:47 UTC) #14
Takashi Toyoshima
Oh, size_t warnings on windows seem to be disabled for content/, and isn't for midi/. ...
4 years, 2 months ago (2016-10-20 08:02:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2431393002/40001
4 years, 2 months ago (2016-10-20 09:21:05 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-20 12:13:49 UTC) #20
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:17:32 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/698d79dd86089e67c1f678147f3172b4add13312
Cr-Commit-Position: refs/heads/master@{#426454}

Powered by Google App Engine
This is Rietveld 408576698