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

Issue 10534004: Implement CancelUserMediaRequest for the browser part (Closed)

Created:
8 years, 6 months ago by Jeremy Mao
Modified:
8 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, jam, jochen+watch-content_chromium.org, darin-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Implement CancelUserMediaRequest for the browser part BUG=126081 TEST=content_unittests, manual test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140738

Patch Set 1 #

Total comments: 3

Patch Set 2 : addressed wjia's comments #

Total comments: 2

Patch Set 3 : addressed tommi's comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -2 lines) Patch
M content/browser/renderer_host/media/media_stream_device_settings.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_device_settings.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_dispatcher_host.cc View 1 1 chunk +7 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
content/browser/renderer_host/media/media_stream_manager.cc View 1 2 1 chunk +36 lines, -0 lines 2 comments Download
M content/renderer/media/media_stream_impl.cc View 1 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Jeremy Mao
Hi scherkus and wjia, Please take a look at this when you are free, this ...
8 years, 6 months ago (2012-06-05 09:41:33 UTC) #1
Jeremy Mao
8 years, 6 months ago (2012-06-06 03:01:48 UTC) #2
wjia(left Chromium)
Thanks for the patch! http://codereview.chromium.org/10534004/diff/1/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): http://codereview.chromium.org/10534004/diff/1/content/browser/renderer_host/media/media_stream_manager.cc#newcode217 content/browser/renderer_host/media/media_stream_manager.cc:217: void MediaStreamManager::CancelGeneratedStream(const std::string& label) { ...
8 years, 6 months ago (2012-06-06 06:18:21 UTC) #3
tommi (sloooow) - chröme
lgtm with wjia's comments addressed. http://codereview.chromium.org/10534004/diff/6002/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): http://codereview.chromium.org/10534004/diff/6002/content/browser/renderer_host/media/media_stream_manager.cc#newcode230 content/browser/renderer_host/media/media_stream_manager.cc:230: if (it->in_use == true) ...
8 years, 6 months ago (2012-06-06 09:29:58 UTC) #4
Jeremy Mao
On 2012/06/06 06:18:21, wjia wrote: > Thanks for the patch! > > http://codereview.chromium.org/10534004/diff/1/content/browser/renderer_host/media/media_stream_manager.cc > File ...
8 years, 6 months ago (2012-06-06 09:33:10 UTC) #5
Jeremy Mao
On 2012/06/06 09:29:58, tommi wrote: > lgtm with wjia's comments addressed. > > http://codereview.chromium.org/10534004/diff/6002/content/browser/renderer_host/media/media_stream_manager.cc > ...
8 years, 6 months ago (2012-06-06 09:35:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yujie.mao@intel.com/10534004/4002
8 years, 6 months ago (2012-06-06 09:39:17 UTC) #7
commit-bot: I haz the power
Change committed as 140738
8 years, 6 months ago (2012-06-06 10:47:06 UTC) #8
wjia(left Chromium)
You can do a follow up patch. http://codereview.chromium.org/10534004/diff/4002/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): http://codereview.chromium.org/10534004/diff/4002/content/browser/renderer_host/media/media_stream_manager.cc#newcode230 content/browser/renderer_host/media/media_stream_manager.cc:230: if (it->in_use) ...
8 years, 6 months ago (2012-06-06 13:40:24 UTC) #9
Jeremy Mao
8 years, 6 months ago (2012-06-07 03:40:17 UTC) #10
Thanks for making it clear, I will upload another patch to fix this issue.
On 2012/06/06 13:40:24, wjia wrote:
> You can do a follow up patch. 
> 
>
http://codereview.chromium.org/10534004/diff/4002/content/browser/renderer_ho...
> File content/browser/renderer_host/media/media_stream_manager.cc (right):
> 
>
http://codereview.chromium.org/10534004/diff/4002/content/browser/renderer_ho...
> content/browser/renderer_host/media/media_stream_manager.cc:230: if
(it->in_use)
> {
> This check is not needed. |in_use| is a signal for "opened". We have to call
> "Close()" as long as we have called "Open()".
> 
> The |state| would be per device. But currently it's per device type. That's a
> different problem.
> 
>
http://codereview.chromium.org/10534004/diff/4002/content/browser/renderer_ho...
> content/browser/renderer_host/media/media_stream_manager.cc:240: if
(it->in_use)
> {
> ditto.

Powered by Google App Engine
This is Rietveld 408576698