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

Issue 248113003: Fix for closing the desktop sharing notification bar when the shared window is closed (Closed)

Created:
6 years, 8 months ago by jiayl
Modified:
6 years, 7 months ago
CC:
chromium-reviews, creis+watch_chromium.org, fischman+watch_chromium.org, nasko+codewatch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fix for closing the desktop sharing notification bar when the shared window is closed. Previously MediaStreamManager is not notified when a video capturing device has stopped due to error (e.g. the shared window is closed), so the notification UI is still shown when the stream already stopped. This change fixes it by populating the state to MediaStreamManager through VideoCaptureHost --> VidoeCaptureManager --> MediaStreamProviderListner. BUG=360181 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267045

Patch Set 1 #

Total comments: 24

Patch Set 2 : address comments and add a test #

Total comments: 6

Patch Set 3 : #

Messages

Total messages: 30 (0 generated)
jiayl
PTAL. I'll add unit tests if the design looks good in general.
6 years, 8 months ago (2014-04-22 23:29:34 UTC) #1
perkj_chrome
Adding Miguel since he has been working most on this lately. Can you take a ...
6 years, 8 months ago (2014-04-23 11:30:42 UTC) #2
jiayl
On 2014/04/23 11:30:42, perkj wrote: > Adding Miguel since he has been working most on ...
6 years, 8 months ago (2014-04-23 15:42:55 UTC) #3
jiayl
https://codereview.chromium.org/248113003/diff/1/content/browser/renderer_host/media/media_stream_provider.h File content/browser/renderer_host/media/media_stream_provider.h (right): https://codereview.chromium.org/248113003/diff/1/content/browser/renderer_host/media/media_stream_provider.h#newcode55 content/browser/renderer_host/media/media_stream_provider.h:55: virtual void Aborted(MediaStreamType stream_type, int capture_session_id) = 0; On ...
6 years, 8 months ago (2014-04-23 15:43:06 UTC) #4
mcasas
On 2014/04/23 15:43:06, jiayl wrote: > https://codereview.chromium.org/248113003/diff/1/content/browser/renderer_host/media/media_stream_provider.h > File content/browser/renderer_host/media/media_stream_provider.h (right): > > https://codereview.chromium.org/248113003/diff/1/content/browser/renderer_host/media/media_stream_provider.h#newcode55 > ...
6 years, 8 months ago (2014-04-24 07:43:23 UTC) #5
perkj_chrome
ok- In that case the code seems ok to me but Mcasas, please help review. ...
6 years, 8 months ago (2014-04-24 10:00:57 UTC) #6
mcasas
Please fix CL description typos. https://codereview.chromium.org/248113003/diff/1/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): https://codereview.chromium.org/248113003/diff/1/content/browser/renderer_host/media/media_stream_manager.cc#newcode1629 content/browser/renderer_host/media/media_stream_manager.cc:1629: } Is not common ...
6 years, 8 months ago (2014-04-24 11:09:46 UTC) #7
jiayl
comments addressed and a test added. PTAL. https://codereview.chromium.org/248113003/diff/1/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): https://codereview.chromium.org/248113003/diff/1/content/browser/renderer_host/media/media_stream_manager.cc#newcode1629 content/browser/renderer_host/media/media_stream_manager.cc:1629: } On ...
6 years, 8 months ago (2014-04-24 18:11:13 UTC) #8
perkj_chrome
lgtm if the below is addressed. If you can, please wait for mcasas review. https://codereview.chromium.org/248113003/diff/20001/content/browser/media/capture/desktop_capture_device_uma_types.h ...
6 years, 8 months ago (2014-04-25 14:36:45 UTC) #9
mcasas
Looks better, please check in particular media_stream_manager.cc:1616 https://codereview.chromium.org/248113003/diff/1/content/browser/renderer_host/media/video_capture_host.cc File content/browser/renderer_host/media/video_capture_host.cc (right): https://codereview.chromium.org/248113003/diff/1/content/browser/renderer_host/media/video_capture_host.cc#newcode180 content/browser/renderer_host/media/video_capture_host.cc:180: I think ...
6 years, 8 months ago (2014-04-25 17:18:35 UTC) #10
jiayl
All comments resolved. PTAL.
6 years, 7 months ago (2014-04-28 18:40:08 UTC) #11
mcasas
lgtm
6 years, 7 months ago (2014-04-29 09:51:06 UTC) #12
jiayl
The CQ bit was checked by jiayl@chromium.org
6 years, 7 months ago (2014-04-29 15:54:24 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiayl@chromium.org/248113003/40001
6 years, 7 months ago (2014-04-29 15:54:46 UTC) #14
jiayl
The CQ bit was unchecked by jiayl@chromium.org
6 years, 7 months ago (2014-04-29 15:54:52 UTC) #15
jiayl
The CQ bit was checked by jiayl@chromium.org
6 years, 7 months ago (2014-04-29 15:54:57 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiayl@chromium.org/248113003/40001
6 years, 7 months ago (2014-04-29 15:55:25 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 17:54:13 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium
6 years, 7 months ago (2014-04-29 17:54:14 UTC) #19
jiayl
The CQ bit was checked by jiayl@chromium.org
6 years, 7 months ago (2014-04-29 18:01:59 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiayl@chromium.org/248113003/40001
6 years, 7 months ago (2014-04-29 18:05:23 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 18:53:00 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium
6 years, 7 months ago (2014-04-29 18:53:01 UTC) #23
jiayl
The CQ bit was checked by jiayl@chromium.org
6 years, 7 months ago (2014-04-29 19:02:20 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiayl@chromium.org/248113003/40001
6 years, 7 months ago (2014-04-29 19:03:27 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 22:01:55 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium linux_chromium_rel on tryserver.chromium
6 years, 7 months ago (2014-04-29 22:01:56 UTC) #27
jiayl
The CQ bit was checked by jiayl@chromium.org
6 years, 7 months ago (2014-04-29 22:04:24 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiayl@chromium.org/248113003/40001
6 years, 7 months ago (2014-04-29 22:09:13 UTC) #29
commit-bot: I haz the power
6 years, 7 months ago (2014-04-30 02:17:24 UTC) #30
Message was sent while issue was closed.
Change committed as 267045

Powered by Google App Engine
This is Rietveld 408576698