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

Issue 149433005: Adds a small icon to notifications, and connects it to synced notifications. (Closed)

Created:
6 years, 10 months ago by dewittj
Modified:
6 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Adds a small icon to notifications, and connects it to synced notifications. The small icon is a 16x16 image in the bottom right of all notification templates. Currently it is not exposed to the JS API, but instead is used only by internal API systems (starting with synced notifications.) BUG=284592 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247875

Patch Set 1 #

Patch Set 2 : Add testing. #

Total comments: 10

Patch Set 3 : Address nits #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -14 lines) Patch
M chrome/browser/notifications/notification.h View 1 chunk +3 lines, -0 lines 1 comment Download
M chrome/browser/notifications/sync_notifier/synced_notification.cc View 1 2 4 chunks +30 lines, -1 line 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification_unittest.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ui/message_center/cocoa/notification_controller.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M ui/message_center/cocoa/notification_controller.mm View 1 2 7 chunks +33 lines, -8 lines 0 comments Download
M ui/message_center/cocoa/notification_controller_unittest.mm View 1 4 chunks +13 lines, -2 lines 0 comments Download
M ui/message_center/message_center_style.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/message_center/notification.h View 2 chunks +6 lines, -0 lines 0 comments Download
M ui/message_center/notification.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/message_center/views/message_view.h View 1 2 4 chunks +4 lines, -0 lines 0 comments Download
M ui/message_center/views/message_view.cc View 1 2 5 chunks +25 lines, -3 lines 0 comments Download
M ui/message_center/views/notification_view.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
dewittj
petewil: chrome/browser/* rsesek: ui/message_center/cocoa/* dimich ui/message_center/* PTAL, thanks.
6 years, 10 months ago (2014-01-29 22:34:09 UTC) #1
Robert Sesek
cocoa/ LGTM https://codereview.chromium.org/149433005/diff/40001/ui/message_center/cocoa/notification_controller.mm File ui/message_center/cocoa/notification_controller.mm (right): https://codereview.chromium.org/149433005/diff/40001/ui/message_center/cocoa/notification_controller.mm#newcode203 ui/message_center/cocoa/notification_controller.mm:203: - (NSBox*)createImageBox:(gfx::Image)notificationImage; While it's cheap to copy ...
6 years, 10 months ago (2014-01-29 22:37:48 UTC) #2
Dmitry Titov
message_center, few nits: https://codereview.chromium.org/149433005/diff/40001/ui/message_center/message_center.h File ui/message_center/message_center.h (right): https://codereview.chromium.org/149433005/diff/40001/ui/message_center/message_center.h#newcode107 ui/message_center/message_center.h:107: virtual void SetNotificationSmallImage(const std::string& notification_id, If ...
6 years, 10 months ago (2014-01-29 23:07:05 UTC) #3
Pete Williamson
LGTM with nit https://codereview.chromium.org/149433005/diff/40001/chrome/browser/notifications/sync_notifier/synced_notification.cc File chrome/browser/notifications/sync_notifier/synced_notification.cc (right): https://codereview.chromium.org/149433005/diff/40001/chrome/browser/notifications/sync_notifier/synced_notification.cc#newcode337 chrome/browser/notifications/sync_notifier/synced_notification.cc:337: if (!app_icon_bitmap_.IsEmpty()) { Nit: It would ...
6 years, 10 months ago (2014-01-30 00:00:21 UTC) #4
dewittj
https://codereview.chromium.org/149433005/diff/40001/chrome/browser/notifications/sync_notifier/synced_notification.cc File chrome/browser/notifications/sync_notifier/synced_notification.cc (right): https://codereview.chromium.org/149433005/diff/40001/chrome/browser/notifications/sync_notifier/synced_notification.cc#newcode337 chrome/browser/notifications/sync_notifier/synced_notification.cc:337: if (!app_icon_bitmap_.IsEmpty()) { On 2014/01/30 00:00:21, Pete Williamson wrote: ...
6 years, 10 months ago (2014-01-30 00:41:56 UTC) #5
Dmitry Titov
LGTM
6 years, 10 months ago (2014-01-30 00:46:23 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/149433005/60001
6 years, 10 months ago (2014-01-30 00:50:55 UTC) #7
commit-bot: I haz the power
Retried try job too often on android_clang_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_clang_dbg&number=110800
6 years, 10 months ago (2014-01-30 02:20:48 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/149433005/60001
6 years, 10 months ago (2014-01-30 02:26:03 UTC) #9
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 03:04:41 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/149433005/60001
6 years, 10 months ago (2014-01-30 03:13:18 UTC) #11
commit-bot: I haz the power
Change committed as 247875
6 years, 10 months ago (2014-01-30 07:37:28 UTC) #12
robwu
6 years, 7 months ago (2014-05-22 21:04:16 UTC) #13
Message was sent while issue was closed.
While looking for the recommended size of the icon (http://crbug.com/376456), I
found an unused private member.

https://codereview.chromium.org/149433005/diff/60001/chrome/browser/notificat...
File chrome/browser/notifications/notification.h (right):

https://codereview.chromium.org/149433005/diff/60001/chrome/browser/notificat...
chrome/browser/notifications/notification.h:129: GURL small_image_url_;
This is not used anywhere, shouldn't it be removed?

Powered by Google App Engine
This is Rietveld 408576698