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

Issue 2670493002: [arc notifications] Inspect pinned flag directly for IsPinned(). (Closed)

Created:
3 years, 10 months ago by Eliot Courtney
Modified:
3 years, 10 months ago
Reviewers:
yoshiki, yhanada
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.

Description

[arc notifications] Inspect pinned flag directly for IsPinned(). When an ARC notification comes, the 'discard notifications' button in the notifications tray is greyed out until you hover over the notification. ArcCustomNotificationView::ContentViewDelegate would check whether ArcCustomNotificationView::floating_close_button_ existed to determine if the notification is pinned or not. Pinned notifications cannot be closed. The floating close button is created if the notification is not pinned. However, it is created after the check inside ContentViewDelegate. Instead, inspect the pinned state directly from ArcCustomNotificationItem. BUG=685467 Review-Url: https://codereview.chromium.org/2670493002 Cr-Commit-Position: refs/heads/master@{#447698} Committed: https://chromium.googlesource.com/chromium/src/+/581285b278ce65ddf216a03295333bd396239c03

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M ui/arc/notification/arc_custom_notification_view.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (8 generated)
Eliot Courtney
3 years, 10 months ago (2017-02-01 08:09:33 UTC) #4
yhanada
lgtm
3 years, 10 months ago (2017-02-01 09:40:17 UTC) #7
yoshiki
lgtm
3 years, 10 months ago (2017-02-02 03:22:02 UTC) #8
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/2670493002/1
3 years, 10 months ago (2017-02-02 03:33:53 UTC) #10
commit-bot: I haz the power
3 years, 10 months ago (2017-02-02 05:08:31 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/581285b278ce65ddf216a0329533...

Powered by Google App Engine
This is Rietveld 408576698