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

Issue 1634933006: Use NotificationResources instead of a bare SkBitmap. (Closed)

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

Description

Use NotificationResources instead of a bare SkBitmap. This prepares the notification feature plumbing for using multiple resources when buttons can have icons. IPC messages cannot take more than 5 arguments, so the idea is that all icon resources will be wrapped in this struct. BUG=581336 Committed: https://crrev.com/9a2f11e52fc01897767d686f3829cb4ced01bf47 Cr-Commit-Position: refs/heads/master@{#371765}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address peter's comments. #

Patch Set 3 : Fix unit tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -110 lines) Patch
M chrome/browser/notifications/platform_notification_service_impl.h View 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.cc View 8 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_unittest.cc View 1 2 11 chunks +23 lines, -25 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_notification_manager.cc View 1 3 chunks +4 lines, -3 lines 0 comments Download
M content/browser/notifications/notification_message_filter.h View 4 chunks +7 lines, -6 lines 0 comments Download
M content/browser/notifications/notification_message_filter.cc View 5 chunks +12 lines, -12 lines 0 comments Download
M content/child/notifications/notification_manager.h View 3 chunks +4 lines, -5 lines 0 comments Download
M content/child/notifications/notification_manager.cc View 10 chunks +19 lines, -18 lines 0 comments Download
M content/child/notifications/pending_notifications_tracker.h View 2 chunks +2 lines, -3 lines 0 comments Download
M content/child/notifications/pending_notifications_tracker.cc View 3 chunks +7 lines, -3 lines 0 comments Download
M content/common/platform_notification_messages.h View 3 chunks +19 lines, -12 lines 0 comments Download
M content/content_common.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/platform_notification_service.h View 4 chunks +7 lines, -6 lines 0 comments Download
A content/public/common/notification_resources.h View 1 1 chunk +23 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_notification_manager.h View 1 2 chunks +4 lines, -3 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_notification_manager.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
Michael van Ouwerkerk
Peter, could you take a look please?
4 years, 11 months ago (2016-01-26 15:26:48 UTC) #2
Peter Beverloo
lgtm Please update the layout test plumbing as well. https://codereview.chromium.org/1634933006/diff/1/chrome/browser/notifications/platform_notification_service_impl.cc File chrome/browser/notifications/platform_notification_service_impl.cc (right): https://codereview.chromium.org/1634933006/diff/1/chrome/browser/notifications/platform_notification_service_impl.cc#newcode469 chrome/browser/notifications/platform_notification_service_impl.cc:469: ...
4 years, 11 months ago (2016-01-26 15:43:23 UTC) #3
Michael van Ouwerkerk
Thanks Peter. https://codereview.chromium.org/1634933006/diff/1/chrome/browser/notifications/platform_notification_service_impl.cc File chrome/browser/notifications/platform_notification_service_impl.cc (right): https://codereview.chromium.org/1634933006/diff/1/chrome/browser/notifications/platform_notification_service_impl.cc#newcode469 chrome/browser/notifications/platform_notification_service_impl.cc:469: // TODO(peter): Icons for Web Notifications are ...
4 years, 11 months ago (2016-01-26 16:24:21 UTC) #4
Michael van Ouwerkerk
Mike, could you take a look please for platform_notification_messages.h? Avi, could you take a look ...
4 years, 11 months ago (2016-01-26 16:37:21 UTC) #5
Michael van Ouwerkerk
Mike, could you take a look please for platform_notification_messages.h? Avi, could you take a look ...
4 years, 11 months ago (2016-01-26 16:37:42 UTC) #7
Avi (use Gerrit)
lgtm
4 years, 11 months ago (2016-01-27 02:52:44 UTC) #8
Mike West
IPC LGTM.
4 years, 11 months ago (2016-01-27 06:25:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634933006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634933006/40001
4 years, 11 months ago (2016-01-27 10:09:35 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-27 10:15:32 UTC) #13
commit-bot: I haz the power
4 years, 11 months ago (2016-01-27 10:16:28 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9a2f11e52fc01897767d686f3829cb4ced01bf47
Cr-Commit-Position: refs/heads/master@{#371765}

Powered by Google App Engine
This is Rietveld 408576698