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

Issue 1217853007: Web MIDI: add a new UMA entry for the final result code (Closed)

Created:
5 years, 5 months ago by Takashi Toyoshima
Modified:
5 years, 5 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, toyoshim+midi_chromium.org, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Web MIDI: add a new UMA entry for the final result code This change adds a new UMA entry for the final MidiManager result code on browser shutdown. To report the result correctly, I assigned new numbers for the result code. As a side effect, this patch can fix an existing problem that the result code for NOT_INITIALIZED was not propagated to renderer side correctly. BUG=465661 Committed: https://crrev.com/eb09fc13169f631cfd610af9fabc3a9e3311ec1a Cr-Commit-Position: refs/heads/master@{#338148}

Patch Set 1 : mechanical change part #

Patch Set 2 : Add UMA #

Total comments: 14

Patch Set 3 : (rebase) #

Patch Set 4 : review #9 #

Total comments: 4

Patch Set 5 : review #16 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -141 lines) Patch
M content/browser/media/midi_host.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/media/midi_host.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/media/midi_messages.h View 3 chunks +3 lines, -5 lines 0 comments Download
M content/renderer/media/midi_message_filter.h View 4 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/media/midi_message_filter.cc View 7 chunks +11 lines, -10 lines 0 comments Download
M media/midi/midi_manager.h View 1 2 3 6 chunks +10 lines, -10 lines 0 comments Download
M media/midi/midi_manager.cc View 1 2 3 4 6 chunks +12 lines, -9 lines 2 comments Download
M media/midi/midi_manager_alsa.cc View 7 chunks +10 lines, -10 lines 0 comments Download
M media/midi/midi_manager_mac.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M media/midi/midi_manager_mac_unittest.cc View 5 chunks +6 lines, -6 lines 0 comments Download
M media/midi/midi_manager_unittest.cc View 12 chunks +25 lines, -26 lines 0 comments Download
M media/midi/midi_manager_usb.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/midi/midi_manager_usb.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M media/midi/midi_manager_usb_unittest.cc View 13 chunks +13 lines, -15 lines 0 comments Download
M media/midi/midi_manager_win.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/midi/midi_manager_win.cc View 3 chunks +3 lines, -3 lines 0 comments Download
D media/midi/midi_result.h View 1 chunk +0 lines, -27 lines 0 comments Download
A media/midi/result.h View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (9 generated)
Takashi Toyoshima
Can you take a look?
5 years, 5 months ago (2015-07-06 16:23:10 UTC) #5
yhirano
> Original code had a problem that NOT_INITIALIZED was not propagated to renderer side correctly. ...
5 years, 5 months ago (2015-07-07 04:11:39 UTC) #6
Takashi Toyoshima
It was a separate issue that I find by chance in the way to add ...
5 years, 5 months ago (2015-07-07 06:17:23 UTC) #7
Takashi Toyoshima
How about the new description?
5 years, 5 months ago (2015-07-07 06:21:09 UTC) #8
yhirano
https://codereview.chromium.org/1217853007/diff/80001/media/midi/midi_manager.cc File media/midi/midi_manager.cc (right): https://codereview.chromium.org/1217853007/diff/80001/media/midi/midi_manager.cc#newcode20 media/midi/midi_manager.cc:20: : initialized_(false), result_(Result::NOT_SUPPORTED) { Perhaps not related with this ...
5 years, 5 months ago (2015-07-07 07:05:21 UTC) #9
Takashi Toyoshima
https://codereview.chromium.org/1217853007/diff/80001/media/midi/midi_manager.cc File media/midi/midi_manager.cc (right): https://codereview.chromium.org/1217853007/diff/80001/media/midi/midi_manager.cc#newcode20 media/midi/midi_manager.cc:20: : initialized_(false), result_(Result::NOT_SUPPORTED) { Oh, good catch. MidiManager set ...
5 years, 5 months ago (2015-07-09 05:02:54 UTC) #10
yhirano
lgtm
5 years, 5 months ago (2015-07-09 05:05:45 UTC) #14
Takashi Toyoshima
+asvitkine for tools/metrics/histograms/histograms.xml Relevant UMA change is in media/midi/midi_manager.cc. +palmer for content/common/media/midi_messages.h This is almost ...
5 years, 5 months ago (2015-07-09 05:06:39 UTC) #15
Alexei Svitkine (slow)
https://codereview.chromium.org/1217853007/diff/120001/media/midi/midi_manager.cc File media/midi/midi_manager.cc (right): https://codereview.chromium.org/1217853007/diff/120001/media/midi/midi_manager.cc#newcode16 media/midi/midi_manager.cc:16: const char kMidiResultOnShutdown[] = "Midi.ResultOnShutdown"; Nit: If it's only ...
5 years, 5 months ago (2015-07-09 17:11:27 UTC) #16
Takashi Toyoshima
done https://codereview.chromium.org/1217853007/diff/120001/media/midi/midi_manager.cc File media/midi/midi_manager.cc (right): https://codereview.chromium.org/1217853007/diff/120001/media/midi/midi_manager.cc#newcode16 media/midi/midi_manager.cc:16: const char kMidiResultOnShutdown[] = "Midi.ResultOnShutdown"; I prefer to ...
5 years, 5 months ago (2015-07-09 17:43:30 UTC) #17
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/1217853007/diff/140001/media/midi/midi_manager.cc File media/midi/midi_manager.cc (right): https://codereview.chromium.org/1217853007/diff/140001/media/midi/midi_manager.cc#newcode22 media/midi/midi_manager.cc:22: static_cast<int>(Result::MAX) + 1); On 2015/07/09 17:43:30, Takashi Toyoshima ...
5 years, 5 months ago (2015-07-09 18:05:27 UTC) #18
palmer
IPC LGTM.
5 years, 5 months ago (2015-07-09 18:42:37 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1217853007/140001
5 years, 5 months ago (2015-07-09 19:49:23 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:140001)
5 years, 5 months ago (2015-07-09 21:15:03 UTC) #23
commit-bot: I haz the power
5 years, 5 months ago (2015-07-09 21:16:20 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/eb09fc13169f631cfd610af9fabc3a9e3311ec1a
Cr-Commit-Position: refs/heads/master@{#338148}

Powered by Google App Engine
This is Rietveld 408576698