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

Issue 2976913002: Better handle null delegates by returning instead of CHECK() (Closed)

Created:
3 years, 5 months ago by dougt
Modified:
3 years, 5 months ago
Reviewers:
David Tseng
CC:
chromium-reviews, aboxhall+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, dougt+watch_chromium.org, aleventhal+watch_chromium.org, dtseng+watch_chromium.org, dmazzoni+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Better handle null delegates by returning instead of CHECK() BUG=741764 Review-Url: https://codereview.chromium.org/2976913002 Cr-Commit-Position: refs/heads/master@{#486221} Committed: https://chromium.googlesource.com/chromium/src/+/2e19ce1cadce6b9a116f7795cb944a0c695b7735

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -38 lines) Patch
M content/browser/accessibility/browser_accessibility_com_win.cc View 1 1 chunk +11 lines, -5 lines 0 comments Download
M ui/accessibility/platform/ax_platform_node_base.cc View 1 9 chunks +65 lines, -31 lines 0 comments Download
M ui/accessibility/platform/ax_platform_node_win.cc View 1 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (12 generated)
dougt
dtseng, ptal.
3 years, 5 months ago (2017-07-12 20:48:59 UTC) #4
chromium-reviews
I thought we were checking for instance_active when making calls from native objects whose lifetime ...
3 years, 5 months ago (2017-07-12 21:11:58 UTC) #7
David Tseng
Have you verified this is an access to a nullptr (delegate_) vs use after free ...
3 years, 5 months ago (2017-07-12 21:45:57 UTC) #8
David Tseng
lgtm I guess since it doesn't hurt, but I'm not convinced it's the underlying issue ...
3 years, 5 months ago (2017-07-12 21:47:14 UTC) #9
dougt
On 2017/07/12 21:11:58, chromium-reviews wrote: > I thought we were checking for instance_active when making ...
3 years, 5 months ago (2017-07-12 22:29:07 UTC) #10
dougt
On 2017/07/12 21:45:57, David Tseng wrote: > Have you verified this is an access to ...
3 years, 5 months ago (2017-07-12 22:30:49 UTC) #11
David Tseng
Ok, still lgtm. What I didn't see or check was that on destruction of an ...
3 years, 5 months ago (2017-07-12 22:48:45 UTC) #14
dougt
> https://codereview.chromium.org/2976913002/diff/1/ui/accessibility/platform/ax_platform_node_base.cc > File ui/accessibility/platform/ax_platform_node_base.cc (right): > > https://codereview.chromium.org/2976913002/diff/1/ui/accessibility/platform/ax_platform_node_base.cc#newcode358 > ui/accessibility/platform/ax_platform_node_base.cc:358: if (!delegate_) > Optional: ...
3 years, 5 months ago (2017-07-12 23:36:43 UTC) #15
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/2976913002/20001
3 years, 5 months ago (2017-07-13 02:05:54 UTC) #19
commit-bot: I haz the power
3 years, 5 months ago (2017-07-13 02:11:23 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/2e19ce1cadce6b9a116f7795cb94...

Powered by Google App Engine
This is Rietveld 408576698