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

Issue 20136004: Allow partial update for notification update API (Closed)

Created:
7 years, 5 months ago by jianli
Modified:
7 years, 5 months ago
Reviewers:
miket_OOO, sky, dewittj
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Allow partial update for notification update API With this change, the user only needs to specify the properties to be changed. This patch does not change the way that the toast is updated by recreating the views. It will be addressed in next patch. BUG=170924 TEST=new tests added TBR=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213891

Patch Set 1 : Patch #

Patch Set 2 : Fix trybots #

Total comments: 10

Patch Set 3 : Fix per feedbacks #

Patch Set 4 : Fix trybots #

Patch Set 5 : Fix trybots #

Total comments: 1

Patch Set 6 : Add more tests per feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+480 lines, -105 lines) Patch
M chrome/browser/chromeos/power/peripheral_battery_observer_browsertest.cc View 1 2 3 4 6 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/notifications/notifications_api.h View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/notifications/notifications_api.cc View 1 2 4 chunks +115 lines, -10 lines 0 comments Download
M chrome/browser/extensions/api/notifications/notifications_apitest.cc View 1 2 3 4 5 4 chunks +255 lines, -34 lines 0 comments Download
M chrome/browser/notifications/balloon_collection.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/balloon_collection_base.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/balloon_collection_base.cc View 1 2 1 chunk +7 lines, -5 lines 0 comments Download
M chrome/browser/notifications/balloon_collection_impl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/balloon_collection_impl.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/notifications/balloon_notification_ui_manager.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/notifications/balloon_notification_ui_manager.cc View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/notifications/message_center_notification_manager.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/notifications/message_center_notification_manager.cc View 1 2 1 chunk +8 lines, -6 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager.h View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_impl.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/notifications/notification_ui_manager_impl.cc View 1 2 1 chunk +7 lines, -5 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/chrome_notifier_service_unittest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification_unittest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/screenshot_taker_unittest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/balloon_controller_unittest.mm View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/common/extensions/api/notifications.idl View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/renderer/resources/extensions/notifications_custom_bindings.js View 1 2 2 chunks +20 lines, -12 lines 0 comments Download
M ui/message_center/notification.h View 1 2 2 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
jianli
7 years, 5 months ago (2013-07-24 22:07:58 UTC) #1
dewittj
https://codereview.chromium.org/20136004/diff/8002/chrome/browser/extensions/api/notifications/notifications_api.cc File chrome/browser/extensions/api/notifications/notifications_api.cc (right): https://codereview.chromium.org/20136004/diff/8002/chrome/browser/extensions/api/notifications/notifications_api.cc#newcode527 chrome/browser/extensions/api/notifications/notifications_api.cc:527: bool could_create_notification = UpdateNotification( nit: could_update_notification https://codereview.chromium.org/20136004/diff/8002/chrome/browser/notifications/notification.h File chrome/browser/notifications/notification.h ...
7 years, 5 months ago (2013-07-24 23:09:53 UTC) #2
jianli
https://codereview.chromium.org/20136004/diff/8002/chrome/browser/extensions/api/notifications/notifications_api.cc File chrome/browser/extensions/api/notifications/notifications_api.cc (right): https://codereview.chromium.org/20136004/diff/8002/chrome/browser/extensions/api/notifications/notifications_api.cc#newcode527 chrome/browser/extensions/api/notifications/notifications_api.cc:527: bool could_create_notification = UpdateNotification( On 2013/07/24 23:09:53, dewittj wrote: ...
7 years, 5 months ago (2013-07-25 01:02:41 UTC) #3
jianli
Adding miket for idl change.
7 years, 5 months ago (2013-07-25 19:02:02 UTC) #4
dewittj
lgtm if you add a few more tests that cover all the required properties for ...
7 years, 5 months ago (2013-07-25 20:16:26 UTC) #5
miket_OOO
chrome/common/extensions/api/notifications.idl OWNER LGTM
7 years, 5 months ago (2013-07-25 22:59:35 UTC) #6
jianli
Adding sky as TBR for ash and chromeos test file changes due to notification interface ...
7 years, 5 months ago (2013-07-25 23:06:46 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jianli@chromium.org/20136004/137001
7 years, 5 months ago (2013-07-26 03:59:30 UTC) #8
commit-bot: I haz the power
7 years, 5 months ago (2013-07-26 13:40:51 UTC) #9
Message was sent while issue was closed.
Change committed as 213891

Powered by Google App Engine
This is Rietveld 408576698