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

Issue 14767029: Add API function chrome.notifications.getAll (Closed)

Created:
7 years, 7 months ago by dewittj
Modified:
7 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Add API function chrome.notifications.getAll This function returns an object whose keys are the notification IDs of all notifications created by that extension. BUG=240924 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201932

Patch Set 1 : Finish implementation for balloons, reformat, rebase. #

Patch Set 2 : Remove spurious TODO #

Patch Set 3 : More sanitary changes. #

Patch Set 4 : Update test. #

Patch Set 5 : Add an include. #

Patch Set 6 : Fix sprintf template. #

Patch Set 7 : Fix merge that caused test error. #

Total comments: 14

Patch Set 8 : Address dimich comments. #

Patch Set 9 : Address dimich comments #2. #

Total comments: 1

Patch Set 10 : IWYU + dimich nit. #

Total comments: 1

Patch Set 11 : Fix bug caught by TestGetAll. #

Patch Set 12 : Rebase. #

Patch Set 13 : Disable broken test on linux/aura #

Patch Set 14 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -18 lines) Patch
M chrome/browser/extensions/api/notifications/notifications_api.h View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/notifications/notifications_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +47 lines, -17 lines 0 comments Download
M chrome/browser/extensions/api/notifications/notifications_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +78 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/notifications/balloon_notification_ui_manager.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/notifications/balloon_notification_ui_manager.cc View 1 2 3 4 5 6 7 8 2 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/notifications/message_center_notification_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 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 2 chunks +20 lines, -1 line 0 comments Download
M chrome/browser/notifications/notification_ui_manager.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_impl.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/chrome_notifier_service_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/synced_notification_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +13 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/notifications.idl View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
dewittj
miket: OWNERS for chrome/browser/extensions, chrome/common/extensions dimich: notification ui managers in particular
7 years, 7 months ago (2013-05-14 23:44:14 UTC) #1
Dmitry Titov
https://codereview.chromium.org/14767029/diff/23001/chrome/browser/extensions/api/notifications/notifications_api.cc File chrome/browser/extensions/api/notifications/notifications_api.cc (right): https://codereview.chromium.org/14767029/diff/23001/chrome/browser/extensions/api/notifications/notifications_api.cc#newcode387 chrome/browser/extensions/api/notifications/notifications_api.cc:387: iter++) { nit: Most often, this loop is split ...
7 years, 7 months ago (2013-05-16 20:39:15 UTC) #2
dewittj
https://codereview.chromium.org/14767029/diff/23001/chrome/browser/extensions/api/notifications/notifications_api.cc File chrome/browser/extensions/api/notifications/notifications_api.cc (right): https://codereview.chromium.org/14767029/diff/23001/chrome/browser/extensions/api/notifications/notifications_api.cc#newcode387 chrome/browser/extensions/api/notifications/notifications_api.cc:387: iter++) { On 2013/05/16 20:39:15, Dmitry Titov wrote: > ...
7 years, 7 months ago (2013-05-16 23:40:33 UTC) #3
Dmitry Titov
lgtm with a nit: https://codereview.chromium.org/14767029/diff/44002/chrome/browser/notifications/message_center_notification_manager.cc File chrome/browser/notifications/message_center_notification_manager.cc (right): https://codereview.chromium.org/14767029/diff/44002/chrome/browser/notifications/message_center_notification_manager.cc#newcode84 chrome/browser/notifications/message_center_notification_manager.cc:84: NotificationMap::iterator curiter = loopiter++; This ...
7 years, 7 months ago (2013-05-17 00:14:41 UTC) #4
miket_OOO
lgtm https://codereview.chromium.org/14767029/diff/56001/chrome/browser/notifications/notification_ui_manager_impl.cc File chrome/browser/notifications/notification_ui_manager_impl.cc (right): https://codereview.chromium.org/14767029/diff/56001/chrome/browser/notifications/notification_ui_manager_impl.cc#newcode107 chrome/browser/notifications/notification_ui_manager_impl.cc:107: notification_ids.insert((*iter)->notification().notification_id()); It's a code smell that I've now ...
7 years, 7 months ago (2013-05-20 21:14:44 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/14767029/70001
7 years, 7 months ago (2013-05-21 18:12:23 UTC) #6
dewittj
On 2013/05/20 21:14:44, miket wrote: > lgtm > > https://codereview.chromium.org/14767029/diff/56001/chrome/browser/notifications/notification_ui_manager_impl.cc > File chrome/browser/notifications/notification_ui_manager_impl.cc (right): > ...
7 years, 7 months ago (2013-05-21 18:14:31 UTC) #7
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=42701
7 years, 7 months ago (2013-05-21 20:33:19 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/14767029/70001
7 years, 7 months ago (2013-05-21 22:36:38 UTC) #9
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=42252
7 years, 7 months ago (2013-05-22 00:20:57 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/14767029/70001
7 years, 7 months ago (2013-05-22 23:07:05 UTC) #11
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/extension_function_histogram_value.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 7 months ago (2013-05-22 23:07:09 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/14767029/101001
7 years, 7 months ago (2013-05-23 01:27:34 UTC) #13
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=43390
7 years, 7 months ago (2013-05-23 03:43:43 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/14767029/123001
7 years, 7 months ago (2013-05-23 20:07:52 UTC) #15
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/extension_function_histogram_value.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 7 months ago (2013-05-23 20:07:57 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/14767029/132001
7 years, 7 months ago (2013-05-23 20:13:22 UTC) #17
commit-bot: I haz the power
7 years, 7 months ago (2013-05-24 00:33:57 UTC) #18
Message was sent while issue was closed.
Change committed as 201932

Powered by Google App Engine
This is Rietveld 408576698