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

Issue 22960004: Fix the crash bug of close button for the resolution change notification. (Closed)

Created:
7 years, 4 months ago by Jun Mukai
Modified:
7 years, 4 months ago
Reviewers:
oshima
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Fix the crash bug of close button for the resolution change notification. Close() is invoked in RemoveNotification() before removing the notification (because the NotificationDelegate is owned by its notification). Invoking AcceptResolutionChange() directly here causes the removing notification twice, which will cause a crash. BUG=271784 R=oshima@chromium.org TEST=covered by the new test case Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217338

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 2

Patch Set 3 : fix #

Patch Set 4 : fix the new test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -8 lines) Patch
M ash/display/resolution_notification_controller.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M ash/display/resolution_notification_controller.cc View 1 3 chunks +9 lines, -6 lines 0 comments Download
M ash/display/resolution_notification_controller_unittest.cc View 1 2 3 2 chunks +34 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Jun Mukai
7 years, 4 months ago (2013-08-13 00:54:51 UTC) #1
oshima
the change LGTM, but please wait for https://codereview.chromium.org/22662005/ sync & fix the test before landing ...
7 years, 4 months ago (2013-08-13 01:10:02 UTC) #2
Jun Mukai
https://codereview.chromium.org/22960004/diff/2001/ash/display/resolution_notification_controller.h File ash/display/resolution_notification_controller.h (right): https://codereview.chromium.org/22960004/diff/2001/ash/display/resolution_notification_controller.h#newcode54 ash/display/resolution_notification_controller.h:54: // should be removed at the same time. On ...
7 years, 4 months ago (2013-08-13 02:24:11 UTC) #3
Jun Mukai
On 2013/08/13 02:24:11, Jun Mukai wrote: > https://codereview.chromium.org/22960004/diff/2001/ash/display/resolution_notification_controller.h > File ash/display/resolution_notification_controller.h (right): > > https://codereview.chromium.org/22960004/diff/2001/ash/display/resolution_notification_controller.h#newcode54 ...
7 years, 4 months ago (2013-08-13 16:50:15 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/22960004/8001
7 years, 4 months ago (2013-08-13 16:51:55 UTC) #5
commit-bot: I haz the power
7 years, 4 months ago (2013-08-13 20:58:43 UTC) #6
Message was sent while issue was closed.
Change committed as 217338

Powered by Google App Engine
This is Rietveld 408576698