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

Issue 686803003: Null checks to prevent occasional crash (Closed)

Created:
6 years, 1 month ago by Mike Lerman
Modified:
6 years, 1 month ago
Reviewers:
Peter Kasting
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Null checks to prevent occasional crash BUG=423229 Committed: https://crrev.com/0794ea8df9793f17bc6efff92f2960cf9350b5f7 Cr-Commit-Position: refs/heads/master@{#302137}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add DCHECKs #

Total comments: 1

Patch Set 3 : Move to CHECKs instead of DCHECKs and conditionals #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M chrome/browser/ui/browser_list.cc View 1 2 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 15 (3 generated)
Mike Lerman
Hi Peter, I'm adding null checks to prevent occasional reported crashes. Can you please review? ...
6 years, 1 month ago (2014-10-28 16:59:48 UTC) #2
Peter Kasting
https://codereview.chromium.org/686803003/diff/1/chrome/browser/ui/browser_list.cc File chrome/browser/ui/browser_list.cc (right): https://codereview.chromium.org/686803003/diff/1/chrome/browser/ui/browser_list.cc#newcode167 chrome/browser/ui/browser_list.cc:167: if (*it && (*it)->window()) Can both these be NULL, ...
6 years, 1 month ago (2014-10-29 18:07:01 UTC) #3
Mike Lerman
https://codereview.chromium.org/686803003/diff/1/chrome/browser/ui/browser_list.cc File chrome/browser/ui/browser_list.cc (right): https://codereview.chromium.org/686803003/diff/1/chrome/browser/ui/browser_list.cc#newcode167 chrome/browser/ui/browser_list.cc:167: if (*it && (*it)->window()) On 2014/10/29 18:07:01, Peter Kasting ...
6 years, 1 month ago (2014-10-29 18:26:06 UTC) #4
Peter Kasting
On 2014/10/29 18:26:06, Mike Lerman wrote: > https://codereview.chromium.org/686803003/diff/1/chrome/browser/ui/browser_list.cc > File chrome/browser/ui/browser_list.cc (right): > > https://codereview.chromium.org/686803003/diff/1/chrome/browser/ui/browser_list.cc#newcode167 ...
6 years, 1 month ago (2014-10-29 18:34:41 UTC) #5
Mike Lerman
On 2014/10/29 18:34:41, Peter Kasting wrote: > On 2014/10/29 18:26:06, Mike Lerman wrote: > > ...
6 years, 1 month ago (2014-10-29 20:45:49 UTC) #6
Peter Kasting
https://codereview.chromium.org/686803003/diff/40001/chrome/browser/ui/browser_list.cc File chrome/browser/ui/browser_list.cc (right): https://codereview.chromium.org/686803003/diff/40001/chrome/browser/ui/browser_list.cc#newcode156 chrome/browser/ui/browser_list.cc:156: DCHECK((*it)->window()); I would change these two DCHECKs to CHECKs ...
6 years, 1 month ago (2014-10-30 03:07:50 UTC) #8
Mike Lerman
On 2014/10/30 03:07:50, Peter Kasting wrote: > https://codereview.chromium.org/686803003/diff/40001/chrome/browser/ui/browser_list.cc > File chrome/browser/ui/browser_list.cc (right): > > https://codereview.chromium.org/686803003/diff/40001/chrome/browser/ui/browser_list.cc#newcode156 ...
6 years, 1 month ago (2014-10-30 18:40:58 UTC) #9
Peter Kasting
LGTM; you're welcome to add other CHECKs other places if you have ideas on what ...
6 years, 1 month ago (2014-10-30 18:47:43 UTC) #10
Mike Lerman
On 2014/10/30 18:47:43, Peter Kasting wrote: > LGTM; you're welcome to add other CHECKs other ...
6 years, 1 month ago (2014-10-30 18:49:20 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/686803003/60001
6 years, 1 month ago (2014-10-30 18:50:46 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:60001)
6 years, 1 month ago (2014-10-30 19:55:01 UTC) #14
commit-bot: I haz the power
6 years, 1 month ago (2014-10-30 19:56:06 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0794ea8df9793f17bc6efff92f2960cf9350b5f7
Cr-Commit-Position: refs/heads/master@{#302137}

Powered by Google App Engine
This is Rietveld 408576698