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

Issue 2396463002: Remove dangerous CHECK. Add unit test. (Closed)

Created:
4 years, 2 months ago by Max Morin
Modified:
4 years, 2 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, miu+watch_chromium.org, audio-mojo-cl_google.com
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove dangerous CHECK. Add unit test. New unit test failed before changes, passes now. BUG=652610 Committed: https://crrev.com/17fe3c43c3dcfa4c81486e63548a3f985402f68f Cr-Commit-Position: refs/heads/master@{#423483}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Use bad_message. Add another unit test. #

Total comments: 2

Patch Set 3 : Updated bad message name. #

Patch Set 4 : Also update code. #

Total comments: 7

Patch Set 5 : Fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -12 lines) Patch
M content/browser/bad_message.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host.cc View 1 2 3 1 chunk +7 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host_unittest.cc View 1 2 3 4 7 chunks +46 lines, -8 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 3 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
Max Morin
Guido: PTAL. I know you are busy right now, so don't worry if you cannot ...
4 years, 2 months ago (2016-10-04 09:54:31 UTC) #3
Guido Urdaneta
https://codereview.chromium.org/2396463002/diff/1/content/browser/renderer_host/media/audio_renderer_host.cc File content/browser/renderer_host/media/audio_renderer_host.cc (right): https://codereview.chromium.org/2396463002/diff/1/content/browser/renderer_host/media/audio_renderer_host.cc#newcode501 content/browser/renderer_host/media/audio_renderer_host.cc:501: SendErrorMessage(stream_id); Since this should happen only with a bad ...
4 years, 2 months ago (2016-10-04 09:57:11 UTC) #4
Max Morin
On 2016/10/04 09:57:11, Guido Urdaneta wrote: > https://codereview.chromium.org/2396463002/diff/1/content/browser/renderer_host/media/audio_renderer_host.cc > File content/browser/renderer_host/media/audio_renderer_host.cc (right): > > https://codereview.chromium.org/2396463002/diff/1/content/browser/renderer_host/media/audio_renderer_host.cc#newcode501 ...
4 years, 2 months ago (2016-10-04 13:01:32 UTC) #5
Guido Urdaneta
lgtm % nit
4 years, 2 months ago (2016-10-04 13:05:31 UTC) #6
Guido Urdaneta
lgtm % nit https://codereview.chromium.org/2396463002/diff/20001/content/browser/renderer_host/media/audio_renderer_host.cc File content/browser/renderer_host/media/audio_renderer_host.cc (right): https://codereview.chromium.org/2396463002/diff/20001/content/browser/renderer_host/media/audio_renderer_host.cc#newcode502 content/browser/renderer_host/media/audio_renderer_host.cc:502: this, bad_message::ARH_CREATED_WITHOUT_AUTHORIZATION); nit: I think ARH_CREATED_STREAM_WITHOUT_AUTHORIZATION ...
4 years, 2 months ago (2016-10-04 13:05:45 UTC) #7
Max Morin
Thanks Guido. chcunningham: PTAL at content/browser/renderer_host/media/*. nasko: PTAL at content/browser/bad_message.h. Alexei: PTAL at tools/metrics/histograms/histograms.xml. Those ...
4 years, 2 months ago (2016-10-04 13:28:36 UTC) #9
chcunningham
media LGTM % nits https://codereview.chromium.org/2396463002/diff/60001/content/browser/renderer_host/media/audio_renderer_host_unittest.cc File content/browser/renderer_host/media/audio_renderer_host_unittest.cc (right): https://codereview.chromium.org/2396463002/diff/60001/content/browser/renderer_host/media/audio_renderer_host_unittest.cc#newcode285 content/browser/renderer_host/media/audio_renderer_host_unittest.cc:285: media::AudioParameters params( I don't think ...
4 years, 2 months ago (2016-10-04 15:39:30 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/2396463002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2396463002/diff/60001/tools/metrics/histograms/histograms.xml#newcode72468 tools/metrics/histograms/histograms.xml:72468: + <int value="110" label="WSI_UNEXPECTED_ADD_CHANNEL_REQUEST"/> Any idea what happened here? ...
4 years, 2 months ago (2016-10-04 16:53:45 UTC) #11
Max Morin
https://codereview.chromium.org/2396463002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2396463002/diff/60001/tools/metrics/histograms/histograms.xml#newcode72468 tools/metrics/histograms/histograms.xml:72468: + <int value="110" label="WSI_UNEXPECTED_ADD_CHANNEL_REQUEST"/> On 2016/10/04 16:53:45, Alexei Svitkine ...
4 years, 2 months ago (2016-10-04 20:26:54 UTC) #12
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2396463002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2396463002/diff/60001/tools/metrics/histograms/histograms.xml#newcode72468 tools/metrics/histograms/histograms.xml:72468: + <int value="110" label="WSI_UNEXPECTED_ADD_CHANNEL_REQUEST"/> On 2016/10/04 20:26:54, Max ...
4 years, 2 months ago (2016-10-04 20:42:59 UTC) #13
Max Morin
https://codereview.chromium.org/2396463002/diff/60001/content/browser/renderer_host/media/audio_renderer_host_unittest.cc File content/browser/renderer_host/media/audio_renderer_host_unittest.cc (right): https://codereview.chromium.org/2396463002/diff/60001/content/browser/renderer_host/media/audio_renderer_host_unittest.cc#newcode285 content/browser/renderer_host/media/audio_renderer_host_unittest.cc:285: media::AudioParameters params( On 2016/10/04 15:39:30, chcunningham wrote: > I ...
4 years, 2 months ago (2016-10-05 08:58:36 UTC) #14
nasko
LGTM
4 years, 2 months ago (2016-10-05 17:40:01 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/2396463002/80001
4 years, 2 months ago (2016-10-06 07:32:05 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-06 09:04:59 UTC) #20
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/17fe3c43c3dcfa4c81486e63548a3f985402f68f Cr-Commit-Position: refs/heads/master@{#423483}
4 years, 2 months ago (2016-10-06 09:06:54 UTC) #22
Max Morin
4 years, 2 months ago (2016-10-06 10:16:28 UTC) #23
Message was sent while issue was closed.
On 2016/10/06 09:06:54, commit-bot: I haz the power wrote:
> Patchset 5 (id:??) landed as
> https://crrev.com/17fe3c43c3dcfa4c81486e63548a3f985402f68f
> Cr-Commit-Position: refs/heads/master@{#423483}

Thanks for the fast reviews everyone!

Powered by Google App Engine
This is Rietveld 408576698