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

Issue 2754403002: Fix DesktopCapturer constructors to handle failures properly. (Closed)

Created:
3 years, 9 months ago by Sergey Ulanov
Modified:
3 years, 9 months ago
Reviewers:
Hzj_jie
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fix DesktopCapturer constructors to handle failures properly. CreateRawScreenCapturer() and CreateRawWindowCapturer() in DesktopCapturer are allowed to return nullptr when capturer cannot be initialized for some reason. CreateWindowCapturer() and CreateScreenCapturer() in DesktopCapturer were not handling this case correctly, which may lead to crash. BUG=chromium:702745 Review-Url: https://codereview.webrtc.org/2754403002 Cr-Commit-Position: refs/heads/master@{#17298} Committed: https://chromium.googlesource.com/external/webrtc/+/3eba2d82737932660aae18fe4ad169414a3c3313

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M webrtc/modules/desktop_capture/desktop_capturer.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
Sergey Ulanov
3 years, 9 months ago (2017-03-17 19:43:28 UTC) #2
Hzj_jie
On 2017/03/17 19:43:28, Sergey Ulanov wrote: lgtm
3 years, 9 months ago (2017-03-17 19:55:02 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2754403002/1
3 years, 9 months ago (2017-03-17 19:55:43 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2754403002/1
3 years, 9 months ago (2017-03-17 19:56:03 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: ios32_sim_ios9_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios32_sim_ios9_dbg/builds/2667)
3 years, 9 months ago (2017-03-17 20:09:48 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2754403002/1
3 years, 9 months ago (2017-03-17 22:18:18 UTC) #13
commit-bot: I haz the power
3 years, 9 months ago (2017-03-17 22:33:32 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/external/webrtc/+/3eba2d82737932660aae18fe4...

Powered by Google App Engine
This is Rietveld 408576698