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

Issue 2606323002: Add null check for MediaDevicesManager in MDDH destructor. (Closed)

Created:
3 years, 11 months ago by Guido Urdaneta
Modified:
3 years, 11 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add null check for MediaDevicesManager in MDDH destructor. Under certain scenarios (e.g., shutdown) it is possible that the MediaDevicesManager object has been destroyed before a MediaDevicesDispatcherHost tries to access it. BUG=676919 Committed: https://crrev.com/9a54c7ed21d7dd59213d4ac6c74f3500884de656 Cr-Commit-Position: refs/heads/master@{#441136}

Patch Set 1 #

Total comments: 2

Patch Set 2 : tommi's comment #

Patch Set 3 : remove invalid DCHECK #

Total comments: 2

Patch Set 4 : Add comment #

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

Messages

Total messages: 32 (20 generated)
Guido Urdaneta
Hi, PTAL
3 years, 11 months ago (2017-01-03 12:54:51 UTC) #9
tommi (sloooow) - chröme
https://codereview.chromium.org/2606323002/diff/20001/content/browser/renderer_host/media/media_devices_dispatcher_host.cc File content/browser/renderer_host/media/media_devices_dispatcher_host.cc (right): https://codereview.chromium.org/2606323002/diff/20001/content/browser/renderer_host/media/media_devices_dispatcher_host.cc#newcode99 content/browser/renderer_host/media/media_devices_dispatcher_host.cc:99: if (media_stream_manager_->media_devices_manager() && would it make sense to do ...
3 years, 11 months ago (2017-01-03 13:13:20 UTC) #10
Guido Urdaneta
https://codereview.chromium.org/2606323002/diff/20001/content/browser/renderer_host/media/media_devices_dispatcher_host.cc File content/browser/renderer_host/media/media_devices_dispatcher_host.cc (right): https://codereview.chromium.org/2606323002/diff/20001/content/browser/renderer_host/media/media_devices_dispatcher_host.cc#newcode99 content/browser/renderer_host/media/media_devices_dispatcher_host.cc:99: if (media_stream_manager_->media_devices_manager() && On 2017/01/03 13:13:20, tommi (chrömium) wrote: ...
3 years, 11 months ago (2017-01-03 13:27:17 UTC) #13
tommi (sloooow) - chröme
lgtm
3 years, 11 months ago (2017-01-03 13:34:03 UTC) #14
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/2606323002/40001
3 years, 11 months ago (2017-01-03 13:37:23 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/206125)
3 years, 11 months ago (2017-01-03 14:40:53 UTC) #18
Guido Urdaneta
tommi@: I had to remove a DCHECK that is now invalid. still lgtm?
3 years, 11 months ago (2017-01-03 15:49:06 UTC) #22
tommi (sloooow) - chröme
lgtm with the below comment added https://codereview.chromium.org/2606323002/diff/80001/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (left): https://codereview.chromium.org/2606323002/diff/80001/content/browser/renderer_host/media/media_stream_manager.cc#oldcode460 content/browser/renderer_host/media/media_stream_manager.cc:460: DCHECK(media_devices_manager_.get()); can you ...
3 years, 11 months ago (2017-01-03 15:58:27 UTC) #23
Guido Urdaneta
https://codereview.chromium.org/2606323002/diff/80001/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (left): https://codereview.chromium.org/2606323002/diff/80001/content/browser/renderer_host/media/media_stream_manager.cc#oldcode460 content/browser/renderer_host/media/media_stream_manager.cc:460: DCHECK(media_devices_manager_.get()); On 2017/01/03 15:58:27, tommi (chrömium) wrote: > can ...
3 years, 11 months ago (2017-01-03 16:02:50 UTC) #26
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/2606323002/100001
3 years, 11 months ago (2017-01-03 16:02:55 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:100001)
3 years, 11 months ago (2017-01-03 16:56:35 UTC) #30
commit-bot: I haz the power
3 years, 11 months ago (2017-01-03 16:58:10 UTC) #32
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9a54c7ed21d7dd59213d4ac6c74f3500884de656
Cr-Commit-Position: refs/heads/master@{#441136}

Powered by Google App Engine
This is Rietveld 408576698