|
|
Chromium Code Reviews|
Created:
4 years, 2 months ago by xiyuan Modified:
4 years, 2 months ago Reviewers:
yoshiki CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, yusukes+watch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Descriptionarc: OnClosedFromAndroid removes notifications as not by_user
Otherwise, a pinned notification remains in message center while
the underlying ArcNotificationItem is destroyed. This would cause
a crash later when message center attempts to create a view for
the notification.
BUG=647149, 649379
BUG=b/31905643
TEST=Install any app from play store. After install finishes, bring
up the message center and observe no crash.
Committed: https://crrev.com/5ac2951337b278b6caaed5304f95db151a411983
Cr-Commit-Position: refs/heads/master@{#423565}
Patch Set 1 #
Total comments: 2
Patch Set 2 : remove by_user from OnClosedFromAndroid #
Messages
Total messages: 24 (17 generated)
xiyuan@chromium.org changed reviewers: + yoshiki@chromium.org
The CQ bit was checked by xiyuan@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from
==========
arc: Set |by_user| to false in OnNotificationRemoved
Otherwise, a pinned notification remains in message center while
the underlying ArcNotificationItem is destroyed. This would cause
a crash later when message center attempts to create a view for
the notification.
BUG=647149
TEST=Install any app from play store. After install finishes, bring
up the message center and observe no crash.
==========
to
==========
arc: Set |by_user| to false in OnNotificationRemoved
Otherwise, a pinned notification remains in message center while
the underlying ArcNotificationItem is destroyed. This would cause
a crash later when message center attempts to create a view for
the notification.
BUG=647149,649379
TEST=Install any app from play store. After install finishes, bring
up the message center and observe no crash.
==========
lgtm
Still lgtm but have one request. https://codereview.chromium.org/2394483004/diff/1/ui/arc/notification/arc_not... File ui/arc/notification/arc_notification_manager.cc (right): https://codereview.chromium.org/2394483004/diff/1/ui/arc/notification/arc_not... ui/arc/notification/arc_notification_manager.cc:104: item->OnClosedFromAndroid(false /* by_user */); Could you remove the "by_user" argument from ArcNotificationItem::OnClosedFromAndroid() and to pass "false" directly from inside of ArcNotificationItem::OnClosedFromAndroid()? I think that's better than passing false from here.
Description was changed from
==========
arc: Set |by_user| to false in OnNotificationRemoved
Otherwise, a pinned notification remains in message center while
the underlying ArcNotificationItem is destroyed. This would cause
a crash later when message center attempts to create a view for
the notification.
BUG=647149,649379
TEST=Install any app from play store. After install finishes, bring
up the message center and observe no crash.
==========
to
==========
arc: Set |by_user| to false in OnNotificationRemoved
Otherwise, a pinned notification remains in message center while
the underlying ArcNotificationItem is destroyed. This would cause
a crash later when message center attempts to create a view for
the notification.
BUG=647149,649379,b/31905643
TEST=Install any app from play store. After install finishes, bring
up the message center and observe no crash.
==========
Description was changed from
==========
arc: Set |by_user| to false in OnNotificationRemoved
Otherwise, a pinned notification remains in message center while
the underlying ArcNotificationItem is destroyed. This would cause
a crash later when message center attempts to create a view for
the notification.
BUG=647149,649379,b/31905643
TEST=Install any app from play store. After install finishes, bring
up the message center and observe no crash.
==========
to
==========
arc: Set |by_user| to false in OnNotificationRemoved
Otherwise, a pinned notification remains in message center while
the underlying ArcNotificationItem is destroyed. This would cause
a crash later when message center attempts to create a view for
the notification.
BUG=647149,649379
BUG=b/31905643
TEST=Install any app from play store. After install finishes, bring
up the message center and observe no crash.
==========
Description was changed from
==========
arc: Set |by_user| to false in OnNotificationRemoved
Otherwise, a pinned notification remains in message center while
the underlying ArcNotificationItem is destroyed. This would cause
a crash later when message center attempts to create a view for
the notification.
BUG=647149,649379
BUG=b/31905643
TEST=Install any app from play store. After install finishes, bring
up the message center and observe no crash.
==========
to
==========
arc: OnClosedFromAndroid removes notifications as not by_user
Otherwise, a pinned notification remains in message center while
the underlying ArcNotificationItem is destroyed. This would cause
a crash later when message center attempts to create a view for
the notification.
BUG=647149,649379
BUG=b/31905643
TEST=Install any app from play store. After install finishes, bring
up the message center and observe no crash.
==========
https://codereview.chromium.org/2394483004/diff/1/ui/arc/notification/arc_not... File ui/arc/notification/arc_notification_manager.cc (right): https://codereview.chromium.org/2394483004/diff/1/ui/arc/notification/arc_not... ui/arc/notification/arc_notification_manager.cc:104: item->OnClosedFromAndroid(false /* by_user */); On 2016/10/06 06:37:13, yoshiki wrote: > Could you remove the "by_user" argument from > ArcNotificationItem::OnClosedFromAndroid() and to pass "false" directly from > inside of ArcNotificationItem::OnClosedFromAndroid()? > > I think that's better than passing false from here. Sounds good. Done.
The CQ bit was checked by xiyuan@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by xiyuan@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from yoshiki@chromium.org Link to the patchset: https://codereview.chromium.org/2394483004/#ps20001 (title: "remove by_user from OnClosedFromAndroid")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from
==========
arc: OnClosedFromAndroid removes notifications as not by_user
Otherwise, a pinned notification remains in message center while
the underlying ArcNotificationItem is destroyed. This would cause
a crash later when message center attempts to create a view for
the notification.
BUG=647149,649379
BUG=b/31905643
TEST=Install any app from play store. After install finishes, bring
up the message center and observe no crash.
==========
to
==========
arc: OnClosedFromAndroid removes notifications as not by_user
Otherwise, a pinned notification remains in message center while
the underlying ArcNotificationItem is destroyed. This would cause
a crash later when message center attempts to create a view for
the notification.
BUG=647149,649379
BUG=b/31905643
TEST=Install any app from play store. After install finishes, bring
up the message center and observe no crash.
==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from
==========
arc: OnClosedFromAndroid removes notifications as not by_user
Otherwise, a pinned notification remains in message center while
the underlying ArcNotificationItem is destroyed. This would cause
a crash later when message center attempts to create a view for
the notification.
BUG=647149,649379
BUG=b/31905643
TEST=Install any app from play store. After install finishes, bring
up the message center and observe no crash.
==========
to
==========
arc: OnClosedFromAndroid removes notifications as not by_user
Otherwise, a pinned notification remains in message center while
the underlying ArcNotificationItem is destroyed. This would cause
a crash later when message center attempts to create a view for
the notification.
BUG=647149,649379
BUG=b/31905643
TEST=Install any app from play store. After install finishes, bring
up the message center and observe no crash.
Committed: https://crrev.com/5ac2951337b278b6caaed5304f95db151a411983
Cr-Commit-Position: refs/heads/master@{#423565}
==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/5ac2951337b278b6caaed5304f95db151a411983 Cr-Commit-Position: refs/heads/master@{#423565} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
