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

Issue 144363005: Make sure DeviceRequestMessageFilter cancel all pending EnumerateDevices requests (Closed)

Created:
6 years, 10 months ago by perkj_chrome
Modified:
6 years, 10 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org
Visibility:
Public.

Description

Make sure DeviceRequestMessageFilter call MediaStreamManager::CancelRequest for all pending requests to MediaStreamManager::EnumerateDevices when the IPC channel is teared down. Before this change DeviceRequestMessageFilter call CancelRequest with the render process pid. But that pid was not been used as an identifier when calling EnumerateDevices. BUG=338561 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247744

Patch Set 1 #

Total comments: 2

Patch Set 2 : Changed to cancel only requests created by thisfilter. #

Total comments: 1

Patch Set 3 : reverted pid changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -2 lines) Patch
M content/browser/renderer_host/media/device_request_message_filter.cc View 1 2 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
perkj_chrome
Hej Can you please review this bugfix?
6 years, 10 months ago (2014-01-28 11:58:06 UTC) #1
tommi (sloooow) - chröme
https://codereview.chromium.org/144363005/diff/1/content/browser/renderer_host/media/device_request_message_filter.cc File content/browser/renderer_host/media/device_request_message_filter.cc (right): https://codereview.chromium.org/144363005/diff/1/content/browser/renderer_host/media/device_request_message_filter.cc#newcode134 content/browser/renderer_host/media/device_request_message_filter.cc:134: this, peer_pid(), -1, resource_context_, -1, MEDIA_DEVICE_AUDIO_CAPTURE, is -1 ever ...
6 years, 10 months ago (2014-01-28 13:26:12 UTC) #2
perkj_chrome
PTAL https://codereview.chromium.org/144363005/diff/1/content/browser/renderer_host/media/device_request_message_filter.cc File content/browser/renderer_host/media/device_request_message_filter.cc (right): https://codereview.chromium.org/144363005/diff/1/content/browser/renderer_host/media/device_request_message_filter.cc#newcode134 content/browser/renderer_host/media/device_request_message_filter.cc:134: this, peer_pid(), -1, resource_context_, -1, MEDIA_DEVICE_AUDIO_CAPTURE, On 2014/01/28 ...
6 years, 10 months ago (2014-01-28 20:01:03 UTC) #3
vrk (LEFT CHROMIUM)
LGTM with nit https://codereview.chromium.org/144363005/diff/20001/content/browser/renderer_host/media/device_request_message_filter.cc File content/browser/renderer_host/media/device_request_message_filter.cc (right): https://codereview.chromium.org/144363005/diff/20001/content/browser/renderer_host/media/device_request_message_filter.cc#newcode137 content/browser/renderer_host/media/device_request_message_filter.cc:137: this, peer_pid(), -1, resource_context_, -1, MEDIA_DEVICE_AUDIO_CAPTURE, ...
6 years, 10 months ago (2014-01-28 20:50:42 UTC) #4
vrk (LEFT CHROMIUM)
Another nit: update bug title+description
6 years, 10 months ago (2014-01-28 21:00:30 UTC) #5
vrk (LEFT CHROMIUM)
On 2014/01/28 21:00:30, Victoria Kirst wrote: > Another nit: update bug title+description Gahh, I meant ...
6 years, 10 months ago (2014-01-28 21:00:59 UTC) #6
perkj_chrome
ptal I would like to keep this as small as possible so I can get ...
6 years, 10 months ago (2014-01-29 07:43:36 UTC) #7
vrk (LEFT CHROMIUM)
lgtm++
6 years, 10 months ago (2014-01-29 18:18:23 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/144363005/60001
6 years, 10 months ago (2014-01-29 18:19:35 UTC) #9
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) remoting_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=218053
6 years, 10 months ago (2014-01-29 18:48:42 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/144363005/60001
6 years, 10 months ago (2014-01-29 19:08:38 UTC) #11
commit-bot: I haz the power
6 years, 10 months ago (2014-01-29 21:41:11 UTC) #12
Message was sent while issue was closed.
Change committed as 247744

Powered by Google App Engine
This is Rietveld 408576698