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

Issue 9320070: Re-added OnChannelClosing in MediaStreamDispatcherHost to close open media devices. (Closed)

Created:
8 years, 10 months ago by mflodman_chromium_OOO
Modified:
8 years, 10 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, jam, acolwell+watch_chromium.org, annacc+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, vrk (LEFT CHROMIUM), scherkus (not reviewing), ihf+watch_chromium.org
Visibility:
Public.

Description

Re-added OnChannelClosing in MediaStreamDispatcherHost to close open media devices. BUG=111340 TEST=content_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=123207

Patch Set 1 #

Patch Set 2 : Added case to unit test. #

Patch Set 3 : Simplified according to chat with wjia. #

Total comments: 1

Patch Set 4 : Updated VideoCaptureManager after r121886. #

Patch Set 5 : Copyright year. #

Patch Set 6 : Indentation after rebase. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -83 lines) Patch
M content/browser/renderer_host/media/media_stream_dispatcher_host.cc View 1 2 3 1 chunk +9 lines, -11 lines 1 comment Download
M content/browser/renderer_host/media/video_capture_manager.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 1 2 3 4 5 3 chunks +17 lines, -39 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager_unittest.cc View 1 2 3 4 11 chunks +39 lines, -32 lines 1 comment Download

Messages

Total messages: 8 (0 generated)
mflodman_chromium_OOO
Wei, I re-added MediaStreamDispatcherHost::OnChannelClosing to close open devices. I had to make Controller::handlers a map ...
8 years, 10 months ago (2012-02-03 13:48:15 UTC) #1
mflodman_chromium_OOO
Added test case to unittest.
8 years, 10 months ago (2012-02-06 19:02:14 UTC) #2
wjia(left Chromium)
as discussed offline, please double check if code change in VCM is needed.
8 years, 10 months ago (2012-02-09 05:53:47 UTC) #3
mflodman_chromium_OOO
http://codereview.chromium.org/9320070/diff/6001/content/browser/renderer_host/media/video_capture_manager.cc File content/browser/renderer_host/media/video_capture_manager.cc (right): http://codereview.chromium.org/9320070/diff/6001/content/browser/renderer_host/media/video_capture_manager.cc#newcode55 content/browser/renderer_host/media/video_capture_manager.cc:55: vc_device_thread_.message_loop()->PostTask( There is a case when |controllers_| won't be ...
8 years, 10 months ago (2012-02-10 13:24:40 UTC) #4
mflodman_chromium_OOO
Changed VideoCaptureManager destructor based on http://codereview.chromium.org/9389006/
8 years, 10 months ago (2012-02-14 16:15:48 UTC) #5
wjia(left Chromium)
lgtm with nit: copyright years.
8 years, 10 months ago (2012-02-15 01:39:01 UTC) #6
mflodman_chromium_OOO
On 2012/02/15 01:39:01, wjia wrote: > lgtm with nit: copyright years. Done.
8 years, 10 months ago (2012-02-15 13:12:58 UTC) #7
tommi (sloooow) - chröme
8 years, 10 months ago (2012-02-23 10:03:22 UTC) #8
couple of nits (better late than never, right?)

https://chromiumcodereview.appspot.com/9320070/diff/17001/content/browser/ren...
File content/browser/renderer_host/media/media_stream_dispatcher_host.cc
(right):

https://chromiumcodereview.appspot.com/9320070/diff/17001/content/browser/ren...
content/browser/renderer_host/media/media_stream_dispatcher_host.cc:66:
std::string label = it->first;
no need to create an extra string copy. should just be:
manager()->StopGeneratedStream(it->first);

https://chromiumcodereview.appspot.com/9320070/diff/17001/content/browser/ren...
File content/browser/renderer_host/media/video_capture_manager_unittest.cc
(right):

https://chromiumcodereview.appspot.com/9320070/diff/17001/content/browser/ren...
content/browser/renderer_host/media/video_capture_manager_unittest.cc:287:
.Times(1);
indent is off here and below.  should be
EXPECT_CALL(...)
    .Times(1);

Powered by Google App Engine
This is Rietveld 408576698