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

Issue 14631005: Enable users of NotificationUIManager to specify binary images. (Closed)

Created:
7 years, 7 months ago by dewittj
Modified:
7 years, 6 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Enable users of NotificationUIManager to specify binary images. This refactors message_center::Notification to hold a class containing the optional data associated with the notification. It also alters chrome/browser/notification so that you can manually set this. Ash tests only updated to use new API. TBR=sky@chromium.org,stevenjb@chromium.org BUG=227093 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204181 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204419

Patch Set 1 : Revamp so that there are no const issues #

Patch Set 2 : Fix message_center_unittests and clang warnings. #

Patch Set 3 : Rebase onto r202946. #

Patch Set 4 : Change message center signature to accept notification objects directly. #

Patch Set 5 : Remove legacy methods from NotificationList. #

Patch Set 6 : Minor nit fixing. #

Patch Set 7 : Fix ash tests. #

Total comments: 2

Patch Set 8 : Remove fake image from synced notification, stop checking icon_url in unit test. #

Total comments: 5

Patch Set 9 : Fix mac unittests. #

Patch Set 10 : Remove downloading code. #

Patch Set 11 : Relate the notification classes by inheritance. #

Patch Set 12 : Fix extension_id handling. #

Total comments: 4

Patch Set 13 : Unpack optional fields instead of keeping it around. #

Patch Set 14 : Rebase. #

Patch Set 15 : Fix sync tests. #

Patch Set 16 : MAYBE the new test for linux_rel. #

Patch Set 17 : Rebase for relanding. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+882 lines, -685 lines) Patch
M ash/shell/window_type_launcher.cc View 1 2 3 4 5 6 1 chunk +13 lines, -8 lines 0 comments Download
M ash/system/web_notification/web_notification_tray_unittest.cc View 1 2 3 4 5 6 1 chunk +14 lines, -6 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/desktop_notification_service_win.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/message_center_notification_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +31 lines, -36 lines 0 comments Download
M chrome/browser/notifications/message_center_notifications_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +48 lines, -3 lines 0 comments Download
M chrome/browser/notifications/notification.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +30 lines, -46 lines 0 comments Download
M chrome/browser/notifications/notification.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +98 lines, -39 lines 0 comments Download
M chrome/browser/notifications/notification_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_mac.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/sync_notifier/chrome_notifier_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +26 lines, -33 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +27 lines, -56 lines 0 comments Download
M ui/message_center/cocoa/notification_controller_unittest.mm View 1 2 3 4 5 6 7 8 7 chunks +7 lines, -0 lines 0 comments Download
M ui/message_center/cocoa/popup_collection_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 7 chunks +138 lines, -95 lines 0 comments Download
M ui/message_center/cocoa/popup_controller_unittest.mm View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/message_center/cocoa/tray_view_controller_unittest.mm View 1 2 3 4 chunks +69 lines, -48 lines 0 comments Download
M ui/message_center/fake_message_center.h View 1 2 3 1 chunk +4 lines, -13 lines 0 comments Download
M ui/message_center/fake_message_center.cc View 1 2 3 1 chunk +3 lines, -14 lines 0 comments Download
M ui/message_center/message_center.h View 1 2 3 4 5 1 chunk +5 lines, -24 lines 0 comments Download
M ui/message_center/message_center_impl.h View 1 2 3 1 chunk +3 lines, -13 lines 0 comments Download
M ui/message_center/message_center_impl.cc View 1 2 3 1 chunk +13 lines, -28 lines 0 comments Download
M ui/message_center/message_center_style.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M ui/message_center/message_center_tray_unittest.cc View 1 2 3 5 chunks +17 lines, -32 lines 0 comments Download
M ui/message_center/notification.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +82 lines, -24 lines 0 comments Download
M ui/message_center/notification.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +84 lines, -18 lines 0 comments Download
M ui/message_center/notification_list.h View 1 2 3 4 1 chunk +2 lines, -13 lines 0 comments Download
M ui/message_center/notification_list.cc View 1 2 3 4 2 chunks +10 lines, -39 lines 0 comments Download
M ui/message_center/notification_list_unittest.cc View 1 2 3 4 8 chunks +130 lines, -79 lines 0 comments Download
M ui/message_center/notification_types.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M ui/message_center/notification_types.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -2 lines 0 comments Download
M ui/message_center/views/message_center_view_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/message_center/views/message_popup_collection_unittest.cc View 1 2 3 1 chunk +11 lines, -8 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
dewittj
There are a few compile errors porting tests on ChromeOS but I thought that I'd ...
7 years, 6 months ago (2013-05-31 00:20:24 UTC) #1
Pete Williamson
Synced Notification changes LGTM with a nit. https://codereview.chromium.org/14631005/diff/36002/chrome/browser/notifications/sync_notifier/synced_notification.cc File chrome/browser/notifications/sync_notifier/synced_notification.cc (right): https://codereview.chromium.org/14631005/diff/36002/chrome/browser/notifications/sync_notifier/synced_notification.cc#newcode143 chrome/browser/notifications/sync_notifier/synced_notification.cc:143: rich_notification_data.icon = ...
7 years, 6 months ago (2013-05-31 01:19:08 UTC) #2
dewittj
petewil: Took out ResourceBundle. Additionally, I modified the unit tests to stop checking icon_url() since ...
7 years, 6 months ago (2013-05-31 16:31:34 UTC) #3
Jun Mukai
https://codereview.chromium.org/14631005/diff/44002/chrome/browser/notifications/message_center_notification_manager.cc File chrome/browser/notifications/message_center_notification_manager.cc (right): https://codereview.chromium.org/14631005/diff/44002/chrome/browser/notifications/message_center_notification_manager.cc#newcode501 chrome/browser/notifications/message_center_notification_manager.cc:501: message_center_->UpdateNotification(updated_id_, It seems that UpdateNotification will still be called ...
7 years, 6 months ago (2013-05-31 17:08:10 UTC) #4
dewittj
I removed the downloading changes to make this patch a little smaller and more focused. ...
7 years, 6 months ago (2013-05-31 22:13:55 UTC) #5
dewittj
PTAL - I made c/b/notification a subclass of ui/mc/notification, leaving it with mostly just extra ...
7 years, 6 months ago (2013-06-01 01:05:01 UTC) #6
Jun Mukai
you may also want to edit chrome/browser/extensions/api/notification/notification_api.cc to use RichNotificationData rather than optional fields. https://codereview.chromium.org/14631005/diff/105001/chrome/browser/notifications/notification.h ...
7 years, 6 months ago (2013-06-02 21:21:23 UTC) #7
dewittj
I'm not ready to update the API file since it is still using URLs. That ...
7 years, 6 months ago (2013-06-03 17:32:26 UTC) #8
Jun Mukai
lgtm
7 years, 6 months ago (2013-06-03 20:01:27 UTC) #9
Pete Williamson
Changes to the SyncedNotificationTests all LGTM
7 years, 6 months ago (2013-06-04 22:13:11 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/14631005/134001
7 years, 6 months ago (2013-06-04 22:54:44 UTC) #11
commit-bot: I haz the power
Change committed as 204181
7 years, 6 months ago (2013-06-05 06:42:45 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/14631005/155001
7 years, 6 months ago (2013-06-05 18:08:02 UTC) #13
commit-bot: I haz the power
7 years, 6 months ago (2013-06-06 04:48:59 UTC) #14
Message was sent while issue was closed.
Change committed as 204419

Powered by Google App Engine
This is Rietveld 408576698