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

Issue 1644083002: Fetch notification action icons and pass them through in resources. (Closed)

Created:
4 years, 10 months ago by Michael van Ouwerkerk
Modified:
4 years, 10 months ago
CC:
chromium-reviews, Peter Beverloo, darin-cc_chromium.org, mlamouri+watch-notifications_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@ActionIconBlink
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fetch notification action icons and pass them through in resources. * Adds an action_icons field to NotificationResources * Turns PendingNotification into a real class. * PendingNotification fetches potentially multiple resources before running its callback. * Adds a unit test for this area of code. BUG=581336, 423039 Committed: https://crrev.com/897451590bd2134f8952c40c5758b217c923ab03 Cr-Commit-Position: refs/heads/master@{#374881}

Patch Set 1 #

Patch Set 2 : Add unit test for PendingNotificationsTracker. #

Patch Set 3 : Rebase. #

Total comments: 46

Patch Set 4 : Rebase. Address peter's comments. #

Patch Set 5 : Fix windows build. #

Patch Set 6 : Fix windows some more. #

Patch Set 7 : Use AppendASCII. #

Patch Set 8 : Rebase. #

Total comments: 4

Patch Set 9 : Address peter's and avi's comments. #

Patch Set 10 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+566 lines, -162 lines) Patch
M content/child/notifications/notification_image_loader.h View 1 2 3 3 chunks +8 lines, -6 lines 0 comments Download
M content/child/notifications/notification_image_loader.cc View 1 2 3 4 chunks +13 lines, -17 lines 0 comments Download
M content/child/notifications/notification_manager.cc View 1 2 3 4 5 6 7 8 8 chunks +38 lines, -8 lines 0 comments Download
A content/child/notifications/pending_notification.h View 1 2 3 4 5 6 7 8 1 chunk +73 lines, -0 lines 0 comments Download
A content/child/notifications/pending_notification.cc View 1 2 3 4 5 6 7 8 1 chunk +90 lines, -0 lines 0 comments Download
M content/child/notifications/pending_notifications_tracker.h View 1 2 3 2 chunks +36 lines, -57 lines 0 comments Download
M content/child/notifications/pending_notifications_tracker.cc View 1 2 3 2 chunks +33 lines, -73 lines 0 comments Download
A content/child/notifications/pending_notifications_tracker_unittest.cc View 1 2 3 4 5 6 1 chunk +248 lines, -0 lines 0 comments Download
M content/common/platform_notification_messages.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/content_child.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/notification_resources.h View 1 chunk +9 lines, -1 line 0 comments Download
A content/public/common/notification_resources.cc View 1 chunk +13 lines, -0 lines 0 comments Download
A content/test/data/notifications/100x100.png View 1 Binary file 0 comments Download
A content/test/data/notifications/110x110.png View 1 Binary file 0 comments Download
A content/test/data/notifications/120x120.png View 1 Binary file 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (10 generated)
Michael van Ouwerkerk
Peter, could you take a look please?
4 years, 10 months ago (2016-02-03 18:28:49 UTC) #3
Peter Beverloo
I really like this, thanks! A bunch of comments, but aside from some excess data ...
4 years, 10 months ago (2016-02-05 15:43:22 UTC) #4
Michael van Ouwerkerk
Thanks for the review Peter. Please take another look. https://codereview.chromium.org/1644083002/diff/40001/content/child/notifications/notification_manager.cc File content/child/notifications/notification_manager.cc (right): https://codereview.chromium.org/1644083002/diff/40001/content/child/notifications/notification_manager.cc#newcode37 content/child/notifications/notification_manager.cc:37: ...
4 years, 10 months ago (2016-02-08 14:38:53 UTC) #6
Michael van Ouwerkerk
Mike, could you take a look please for platform_notification_messages.h?
4 years, 10 months ago (2016-02-08 14:50:20 UTC) #8
Michael van Ouwerkerk
Avi, could you take a look please for content/public/common/notification_resources.*?
4 years, 10 months ago (2016-02-08 14:51:57 UTC) #10
Michael van Ouwerkerk
Peter, Avi, could you take a look please? Thanks :-)
4 years, 10 months ago (2016-02-10 13:53:49 UTC) #11
Avi (use Gerrit)
content public api lgtm https://codereview.chromium.org/1644083002/diff/140001/content/child/notifications/notification_manager.cc File content/child/notifications/notification_manager.cc (right): https://codereview.chromium.org/1644083002/diff/140001/content/child/notifications/notification_manager.cc#newcode334 content/child/notifications/notification_manager.cc:334: DCHECK_EQ(notification_resources.action_icons.size(), 0u); expected values first
4 years, 10 months ago (2016-02-10 17:45:38 UTC) #12
Peter Beverloo
lgtm! https://codereview.chromium.org/1644083002/diff/140001/content/child/notifications/pending_notification.h File content/child/notifications/pending_notification.h (right): https://codereview.chromium.org/1644083002/diff/140001/content/child/notifications/pending_notification.h#newcode41 content/child/notifications/pending_notification.h:41: NotificationResources GetResources(); nit: const qualifier on the method.
4 years, 10 months ago (2016-02-10 18:14:32 UTC) #13
Michael van Ouwerkerk
Thanks! https://codereview.chromium.org/1644083002/diff/140001/content/child/notifications/notification_manager.cc File content/child/notifications/notification_manager.cc (right): https://codereview.chromium.org/1644083002/diff/140001/content/child/notifications/notification_manager.cc#newcode334 content/child/notifications/notification_manager.cc:334: DCHECK_EQ(notification_resources.action_icons.size(), 0u); On 2016/02/10 17:45:37, Avi wrote: > ...
4 years, 10 months ago (2016-02-10 18:23:44 UTC) #14
Michael van Ouwerkerk
Ken, could you take a look at content/common/platform_notification_messages.h please as Mike is traveling?
4 years, 10 months ago (2016-02-10 18:25:28 UTC) #16
kenrb
ipc lgtm
4 years, 10 months ago (2016-02-10 20:17:49 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1644083002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1644083002/180001
4 years, 10 months ago (2016-02-11 09:52:46 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1644083002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1644083002/180001
4 years, 10 months ago (2016-02-11 09:52:48 UTC) #21
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 10 months ago (2016-02-11 10:59:14 UTC) #23
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 10 months ago (2016-02-11 11:00:13 UTC) #24
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:35:12 UTC) #26
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/897451590bd2134f8952c40c5758b217c923ab03
Cr-Commit-Position: refs/heads/master@{#374881}

Powered by Google App Engine
This is Rietveld 408576698