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

Issue 468813002: Add NotifyOnPermissionLevelChanged implementation of notification (Closed)

Created:
6 years, 4 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

Add NotifyOnPermissionLevelChanged implementation of notification provider API When an extension/app with notificationProvider permission shows a user information about sources of the notifications, the notifiers. When the user wants to allow or disallow one notifier, NotifyOnPermissionLevelChanged can be used to inform the notifier that its permission level was changed. BUG=397197 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290105

Patch Set 1 #

Total comments: 8

Patch Set 2 : rebase #

Patch Set 3 : address comments, deleted test for notifyOnShowSettings since it's not implemented #

Total comments: 4

Patch Set 4 : rebase #

Patch Set 5 : address comments, fix and refactor browser test #

Patch Set 6 : style fix #

Total comments: 2

Patch Set 7 : rebase #

Patch Set 8 : move AddListeners before calling functions that would cause those events #

Patch Set 9 : JavaScript format #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -2 lines) Patch
M chrome/browser/extensions/api/notification_provider/notification_provider_api.cc View 1 2 3 4 5 6 7 8 9 2 chunks +25 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/notification_provider/basic_usage/background.js View 1 2 3 4 5 6 7 8 9 2 chunks +22 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
liyanhou
Could you take a look at this? Thank you so much!
6 years, 4 months ago (2014-08-13 17:38:45 UTC) #1
Pete Williamson
https://codereview.chromium.org/468813002/diff/1/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/468813002/diff/1/chrome/browser/extensions/api/notification_provider/notification_provider_api.cc#newcode199 chrome/browser/extensions/api/notification_provider/notification_provider_api.cc:199: bool is_application_type = Let's add a comment about why ...
6 years, 4 months ago (2014-08-13 19:54:01 UTC) #2
dewittj
https://codereview.chromium.org/468813002/diff/40001/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/468813002/diff/40001/chrome/browser/extensions/api/notification_provider/notification_provider_api.cc#newcode210 chrome/browser/extensions/api/notification_provider/notification_provider_api.cc:210: ? true Can you please rewrite this statement as ...
6 years, 4 months ago (2014-08-13 21:30:36 UTC) #3
liyanhou
petewil@, dewittj@, Fixed comments. Fixed and refactored browser test. Could you take another look? https://codereview.chromium.org/468813002/diff/1/chrome/browser/extensions/api/notification_provider/notification_provider_api.cc ...
6 years, 4 months ago (2014-08-14 16:15:24 UTC) #4
Pete Williamson
lgtm
6 years, 4 months ago (2014-08-14 20:24:47 UTC) #5
dewittj
can you create a bug for implementation of this API and add the bug number ...
6 years, 4 months ago (2014-08-14 20:30:30 UTC) #6
dewittj
lgtm once my other comments are resolved
6 years, 4 months ago (2014-08-14 20:47:20 UTC) #7
liyanhou
https://codereview.chromium.org/468813002/diff/100001/chrome/test/data/extensions/api_test/notification_provider/basic_usage/background.js File chrome/test/data/extensions/api_test/notification_provider/basic_usage/background.js (right): https://codereview.chromium.org/468813002/diff/100001/chrome/test/data/extensions/api_test/notification_provider/basic_usage/background.js#newcode111 chrome/test/data/extensions/api_test/notification_provider/basic_usage/background.js:111: chrome.notifications.onClicked.addListener(function(id) { On 2014/08/14 20:30:30, dewittj wrote: > Please ...
6 years, 4 months ago (2014-08-15 18:57:59 UTC) #8
liyanhou
The CQ bit was checked by liyanhou@chromium.org
6 years, 4 months ago (2014-08-15 22:00:51 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/liyanhou@chromium.org/468813002/180001
6 years, 4 months ago (2014-08-15 22:02:53 UTC) #10
commit-bot: I haz the power
6 years, 4 months ago (2014-08-16 06:10:24 UTC) #11
Message was sent while issue was closed.
Committed patchset #10 (180001) as 290105

Powered by Google App Engine
This is Rietveld 408576698