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

Issue 356673003: Notification Provider API (Closed)

Created:
6 years, 6 months ago by liyanhou
Modified:
6 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Notification Provider API The Notification provider API will reroute the notifications that are supposed to be sent to the Chrome Notification Center, so an app can get the notifications and have its own implementation of notification center. BUG=397197 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287155

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : added notification getter to permission_set_unittest #

Total comments: 18

Patch Set 4 : rebase #

Patch Set 5 : addressed comments, changed API name to customNotificationCenter #

Patch Set 6 : bug fix #

Total comments: 2

Patch Set 7 : fixed comment #

Patch Set 8 : rebase #

Patch Set 9 : rebase #

Patch Set 10 : changed API name to notificationProvider, refactored IDL file #

Patch Set 11 : changed some function names, added two new functions #

Patch Set 12 : bug fix #

Patch Set 13 : rebase #

Total comments: 20

Patch Set 14 : added histogram values to histograms.xml #

Total comments: 2

Patch Set 15 : rebase #

Patch Set 16 : addressed comments, added a function getNotifier #

Patch Set 17 : rebase #

Total comments: 15

Patch Set 18 : addressed comments #

Patch Set 19 : rebase #

Patch Set 20 : bug fix #

Total comments: 4

Patch Set 21 : deleted unnecessary "extensions::" #

Patch Set 22 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+657 lines, -0 lines) Patch
A chrome/browser/extensions/api/notification_provider/notification_provider_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +191 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/notification_provider/notification_provider_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +224 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/notification_provider/notification_provider_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +43 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/_api_features.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/api/notification_provider.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +132 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/notification_provider/events/manifest.json View 1 2 3 4 5 6 7 8 9 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/notification_provider/events/test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +24 lines, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +8 lines, -0 lines 0 comments Download
M extensions/common/permissions/api_permission.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
liyanhou
PTAL. This is the skeleton of the new API, with browser tests for the events. ...
6 years, 6 months ago (2014-06-26 18:31:21 UTC) #1
Pete Williamson
https://codereview.chromium.org/356673003/diff/40001/chrome/browser/extensions/api/notification_getter/notification_getter_api.cc File chrome/browser/extensions/api/notification_getter/notification_getter_api.cc (right): https://codereview.chromium.org/356673003/diff/40001/chrome/browser/extensions/api/notification_getter/notification_getter_api.cc#newcode66 chrome/browser/extensions/api/notification_getter/notification_getter_api.cc:66: ->DispatchEventToExtension(extension_id, event.Pass()); This seems to be sending the OnCreated ...
6 years, 5 months ago (2014-06-30 19:03:49 UTC) #2
liyanhou
PTAL. Fixed comments from petewil. https://codereview.chromium.org/356673003/diff/40001/chrome/browser/extensions/api/notification_getter/notification_getter_api.cc File chrome/browser/extensions/api/notification_getter/notification_getter_api.cc (right): https://codereview.chromium.org/356673003/diff/40001/chrome/browser/extensions/api/notification_getter/notification_getter_api.cc#newcode66 chrome/browser/extensions/api/notification_getter/notification_getter_api.cc:66: ->DispatchEventToExtension(extension_id, event.Pass()); On 2014/06/30 ...
6 years, 5 months ago (2014-07-14 17:44:44 UTC) #3
Pete Williamson
LGTM with nits (You have my OK once the nits are fixed.) https://codereview.chromium.org/356673003/diff/100001/chrome/common/extensions/api/custom_notification_center.idl File chrome/common/extensions/api/custom_notification_center.idl ...
6 years, 5 months ago (2014-07-14 19:47:49 UTC) #4
liyanhou
Fixed last comment. PTAL. Thank you! https://codereview.chromium.org/356673003/diff/100001/chrome/common/extensions/api/custom_notification_center.idl File chrome/common/extensions/api/custom_notification_center.idl (right): https://codereview.chromium.org/356673003/diff/100001/chrome/common/extensions/api/custom_notification_center.idl#newcode8 chrome/common/extensions/api/custom_notification_center.idl:8: // icon, title, ...
6 years, 5 months ago (2014-07-15 16:53:32 UTC) #5
liyanhou
Could you take a look at this? It looks long but it's mostly boilerplate code. ...
6 years, 4 months ago (2014-07-28 20:56:09 UTC) #6
Alexei Svitkine (slow)
https://codereview.chromium.org/356673003/diff/240001/extensions/browser/extension_function_histogram_value.h File extensions/browser/extension_function_histogram_value.h (right): https://codereview.chromium.org/356673003/diff/240001/extensions/browser/extension_function_histogram_value.h#newcode917 extensions/browser/extension_function_histogram_value.h:917: NOTIFICATIONPROVIDER_GETALLNOTIFIERS, Please update histograms.xml with these.
6 years, 4 months ago (2014-07-28 20:56:48 UTC) #7
not at google - send to devlin
https://codereview.chromium.org/356673003/diff/240001/chrome/common/extensions/api/api.gyp File chrome/common/extensions/api/api.gyp (right): https://codereview.chromium.org/356673003/diff/240001/chrome/common/extensions/api/api.gyp#newcode84 chrome/common/extensions/api/api.gyp:84: 'notification_provider.idl', should "notification_provider" come before "notifications" in sort order? ...
6 years, 4 months ago (2014-07-28 21:32:40 UTC) #8
liyanhou
Could you take a look at this? Thank you so much! https://codereview.chromium.org/356673003/diff/240001/chrome/common/extensions/api/api.gyp File chrome/common/extensions/api/api.gyp (right): ...
6 years, 4 months ago (2014-07-29 18:26:54 UTC) #9
not at google - send to devlin
https://codereview.chromium.org/356673003/diff/320001/chrome/browser/extensions/api/notification_provider/notification_provider_api.cc File chrome/browser/extensions/api/notification_provider/notification_provider_api.cc (right): https://codereview.chromium.org/356673003/diff/320001/chrome/browser/extensions/api/notification_provider/notification_provider_api.cc#newcode111 chrome/browser/extensions/api/notification_provider/notification_provider_api.cc:111: base::FundamentalValue* result = new base::FundamentalValue(true); for every function: it's ...
6 years, 4 months ago (2014-07-29 20:09:39 UTC) #10
liyanhou
Could you take a look at this? Thank you so much! https://codereview.chromium.org/356673003/diff/320001/chrome/browser/extensions/api/notification_provider/notification_provider_api.cc File chrome/browser/extensions/api/notification_provider/notification_provider_api.cc (right): ...
6 years, 4 months ago (2014-07-30 17:19:25 UTC) #11
not at google - send to devlin
lgtm https://codereview.chromium.org/356673003/diff/320001/chrome/common/extensions/api/notification_provider.idl File chrome/common/extensions/api/notification_provider.idl (right): https://codereview.chromium.org/356673003/diff/320001/chrome/common/extensions/api/notification_provider.idl#newcode115 chrome/common/extensions/api/notification_provider.idl:115: static void onCreated(DOMString notifierId, On 2014/07/30 17:19:25, liyanhou ...
6 years, 4 months ago (2014-07-30 19:24:37 UTC) #12
liyanhou
Could you please take another look? Thank you so much! https://codereview.chromium.org/356673003/diff/380001/chrome/browser/extensions/api/notification_provider/notification_provider_api.cc File chrome/browser/extensions/api/notification_provider/notification_provider_api.cc (right): https://codereview.chromium.org/356673003/diff/380001/chrome/browser/extensions/api/notification_provider/notification_provider_api.cc#newcode72 ...
6 years, 4 months ago (2014-07-30 22:21:51 UTC) #13
not at google - send to devlin
lgtm
6 years, 4 months ago (2014-07-30 23:20:38 UTC) #14
Alexei Svitkine (slow)
lgtm
6 years, 4 months ago (2014-07-31 18:33:02 UTC) #15
liyanhou
The CQ bit was checked by liyanhou@chromium.org
6 years, 4 months ago (2014-07-31 18:34:23 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/liyanhou@chromium.org/356673003/420001
6 years, 4 months ago (2014-07-31 18:36:04 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-07-31 22:10:16 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-01 11:51:56 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel/builds/2321)
6 years, 4 months ago (2014-08-01 11:51:58 UTC) #20
liyanhou
The CQ bit was checked by liyanhou@chromium.org
6 years, 4 months ago (2014-08-01 17:53:10 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/liyanhou@chromium.org/356673003/420001
6 years, 4 months ago (2014-08-01 17:56:06 UTC) #22
commit-bot: I haz the power
6 years, 4 months ago (2014-08-02 05:45:41 UTC) #23
Message was sent while issue was closed.
Change committed as 287155

Powered by Google App Engine
This is Rietveld 408576698