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

Issue 2943693002: Fix TryToCloseBrowserList not checking for null callbacks (Closed)

Created:
3 years, 6 months ago by WC Leung
Modified:
3 years, 6 months ago
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix TryToCloseBrowserList not checking for null callbacks The bug cause crashes such as the one listed in the bug (733084). This CL adds the proper null checks in TryToCloseBrowserList, with testing. BUG=733804 Review-Url: https://codereview.chromium.org/2943693002 Cr-Commit-Position: refs/heads/master@{#480815} Committed: https://chromium.googlesource.com/chromium/src/+/044a70558d6e54a54f2753382289eda3f120cee3

Patch Set 1 : Add offending tests #

Patch Set 2 : Add the fix #

Patch Set 3 : Incorporate treib@'s comment change into the CL. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -9 lines) Patch
M chrome/browser/ui/browser_list.h View 1 2 1 chunk +8 lines, -7 lines 0 comments Download
M chrome/browser/ui/browser_list.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/unload_browsertest.cc View 1 chunk +51 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (17 generated)
WC Leung
Dear Marc, Please note the existence of this CL to avoid double work. (If you ...
3 years, 6 months ago (2017-06-16 13:15:43 UTC) #7
Marc Treib
Non-owners LGTM, thanks! optional: You can copy the comment update in browser_list.h from https://chromium-review.googlesource.com/c/538773/
3 years, 6 months ago (2017-06-16 13:20:36 UTC) #8
WC Leung
Dear jochen@, PTAL as owner of the three files. Thanks! Regards, WC Leung.
3 years, 6 months ago (2017-06-16 13:33:51 UTC) #11
jochen (gone - plz use gerrit)
the referenced bug id appears to be unrelated? It's a bit strange that const refs ...
3 years, 6 months ago (2017-06-19 13:08:09 UTC) #16
Marc Treib
On 2017/06/19 13:08:09, jochen wrote: > the referenced bug id appears to be unrelated? The ...
3 years, 6 months ago (2017-06-19 13:15:43 UTC) #17
WC Leung
Updated the issue number... sorry for the typo.
3 years, 6 months ago (2017-06-19 13:19:21 UTC) #19
WC Leung
On 2017/06/19 13:15:43, Marc Treib wrote: > Of course we could say that this method ...
3 years, 6 months ago (2017-06-19 13:26:28 UTC) #20
jochen (gone - plz use gerrit)
lgtm
3 years, 6 months ago (2017-06-20 06:45:53 UTC) #21
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/2943693002/60001
3 years, 6 months ago (2017-06-20 13:15:08 UTC) #24
commit-bot: I haz the power
3 years, 6 months ago (2017-06-20 14:32:43 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/044a70558d6e54a54f2753382289...

Powered by Google App Engine
This is Rietveld 408576698