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

Issue 2913993002: Prevent crash on clear-all button in message center (Closed)

Created:
3 years, 6 months ago by yoshiki
Modified:
3 years, 6 months ago
Reviewers:
Eliot Courtney, fukino
CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-notifications_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent crash on clear-all button in message center Defer deleting view after calling OnAllNotificationsCleared(). Views are deleted before OnAllNotificationsCleared(), but it causes crash. This CL moves the deletion as a temporary solution. We need to refactor the code around more in near feature. BUG=725299 TEST=none Review-Url: https://codereview.chromium.org/2913993002 Cr-Commit-Position: refs/heads/master@{#476235} Committed: https://chromium.googlesource.com/chromium/src/+/9374f06a7c08b17751ea465e6abcb68721db85b8

Patch Set 1 #

Patch Set 2 #

Total comments: 2

Patch Set 3 : Revert back the unnecessary change #

Total comments: 4

Patch Set 4 : Addressed comments (updating comments) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -4 lines) Patch
M ui/message_center/views/message_list_view.cc View 1 2 3 1 chunk +19 lines, -4 lines 0 comments Download

Messages

Total messages: 39 (31 generated)
yoshiki
Eliot, PTAL. Thanks.
3 years, 6 months ago (2017-06-01 03:24:56 UTC) #19
Eliot Courtney
https://codereview.chromium.org/2913993002/diff/60001/ui/message_center/views/message_list_view.cc File ui/message_center/views/message_list_view.cc (right): https://codereview.chromium.org/2913993002/diff/60001/ui/message_center/views/message_list_view.cc#newcode312 ui/message_center/views/message_list_view.cc:312: clear_all_started_ = false; What effect does moving clear_all_started_ to ...
3 years, 6 months ago (2017-06-01 03:40:03 UTC) #20
yoshiki
Eliot, PTAL. I found the crash we saw with fuzzing is not caused by this ...
3 years, 6 months ago (2017-06-01 05:07:58 UTC) #23
Eliot Courtney
lgtm with nits I'm not a committer yet, so I think you probably need approval ...
3 years, 6 months ago (2017-06-01 07:53:16 UTC) #26
yoshiki
Fukino-san, could you take a look? Thanks. https://codereview.chromium.org/2913993002/diff/80001/ui/message_center/views/message_list_view.cc File ui/message_center/views/message_list_view.cc (right): https://codereview.chromium.org/2913993002/diff/80001/ui/message_center/views/message_list_view.cc#newcode314 ui/message_center/views/message_list_view.cc:314: if (!deleted_when_done_.empty()) ...
3 years, 6 months ago (2017-06-01 08:31:48 UTC) #30
fukino
lgtm
3 years, 6 months ago (2017-06-01 08:57:13 UTC) #31
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/2913993002/100001
3 years, 6 months ago (2017-06-01 09:24:18 UTC) #36
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 09:28:20 UTC) #39
Message was sent while issue was closed.
Committed patchset #4 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/9374f06a7c08b17751ea465e6abc...

Powered by Google App Engine
This is Rietveld 408576698