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

Issue 456223002: Add NotifyOnShowSettings implementation of notification provider API (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 NotifyOnShowSettings implementation of notification provider API and test. When an extension/app with notificationProvider permission shows a user that certain notifiers have advanced settings. When the user clicks and chooses to see advanced settings of one notifier, NotifyOnShowSettings can be used to inform the notifier that a user requested advanced settings, so the notifier can do something else to display its advanced settings. BUG=397197 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289823

Patch Set 1 : #

Total comments: 5

Patch Set 2 : address comments #

Patch Set 3 : rebase #

Total comments: 4

Patch Set 4 : add some new fields in API, add more tests #

Patch Set 5 : add comments in IDL file #

Total comments: 2

Patch Set 6 : rebase #

Patch Set 7 : fix and refactor browser test #

Patch Set 8 : style fix #

Patch Set 9 : Move AddListeners before calling functions that would cause those events #

Total comments: 6

Patch Set 10 : address comments (JavaScript format) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -58 lines) Patch
M chrome/browser/extensions/api/notification_provider/notification_provider_api.cc View 1 2 3 3 chunks +25 lines, -3 lines 0 comments Download
M chrome/common/extensions/api/notification_provider.idl View 1 2 3 4 3 chunks +22 lines, -5 lines 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 3 chunks +93 lines, -50 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
liyanhou
Can you take a look at this? Thank you so much!
6 years, 4 months ago (2014-08-11 17:19:46 UTC) #1
Pete Williamson
Please explain a bit more in the changelist description. I wasn't able to get a ...
6 years, 4 months ago (2014-08-11 17:53:50 UTC) #2
liyanhou
petewil@, I added more detailed descriptions for this CL. https://codereview.chromium.org/456223002/diff/20001/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/456223002/diff/20001/chrome/test/data/extensions/api_test/notification_provider/basic_usage/background.js#newcode116 chrome/test/data/extensions/api_test/notification_provider/basic_usage/background.js:116: ...
6 years, 4 months ago (2014-08-11 18:24:07 UTC) #3
Pete Williamson
lgtm https://codereview.chromium.org/456223002/diff/20001/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/456223002/diff/20001/chrome/test/data/extensions/api_test/notification_provider/basic_usage/background.js#newcode116 chrome/test/data/extensions/api_test/notification_provider/basic_usage/background.js:116: createNotification(id1, content) On 2014/08/11 18:24:06, liyanhou wrote: > ...
6 years, 4 months ago (2014-08-11 18:31:49 UTC) #4
liyanhou
kalman@chromium.org: Could you take a look at notification_provider_api.cc and notification_provider_apitest.cc? Btw, the change in notification_provider_apitest.cc ...
6 years, 4 months ago (2014-08-11 18:38:22 UTC) #5
not at google - send to devlin
I'd rather you add an OWNERS file and I review that instead :)
6 years, 4 months ago (2014-08-11 18:55:46 UTC) #6
not at google - send to devlin
(rubberstamp lgtm in the meantime)
6 years, 4 months ago (2014-08-11 19:55:56 UTC) #7
liyanhou
The CQ bit was checked by liyanhou@chromium.org
6 years, 4 months ago (2014-08-11 20:24:07 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/liyanhou@chromium.org/456223002/20001
6 years, 4 months ago (2014-08-11 20:26:00 UTC) #9
dewittj
not lgtm Please fix the spelling in the cl subject and description and also address ...
6 years, 4 months ago (2014-08-11 21:16:16 UTC) #10
liyanhou
The CQ bit was unchecked by liyanhou@chromium.org
6 years, 4 months ago (2014-08-11 22:14:14 UTC) #11
liyanhou
dewittj@ Addressed comment. Could you take another look at this? Thank you! https://codereview.chromium.org/456223002/diff/20001/chrome/browser/extensions/api/notification_provider/notification_provider_api.cc File chrome/browser/extensions/api/notification_provider/notification_provider_api.cc ...
6 years, 4 months ago (2014-08-12 17:15:01 UTC) #12
dewittj
https://codereview.chromium.org/456223002/diff/80001/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/456223002/diff/80001/chrome/browser/extensions/api/notification_provider/notification_provider_api.cc#newcode219 chrome/browser/extensions/api/notification_provider/notification_provider_api.cc:219: message_center::MessageCenter::Get()->GetNotifierSettingsProvider(); This is better, but it feels like you ...
6 years, 4 months ago (2014-08-12 18:21:05 UTC) #13
liyanhou
Added some new fields in the API. Please take another look. Thank you! Sorry that ...
6 years, 4 months ago (2014-08-13 21:06:26 UTC) #14
dewittj
https://codereview.chromium.org/456223002/diff/120001/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/456223002/diff/120001/chrome/test/data/extensions/api_test/notification_provider/basic_usage/background.js#newcode192 chrome/test/data/extensions/api_test/notification_provider/basic_usage/background.js:192: .catch(function() { return allEventesReceived( Same comment as the other ...
6 years, 4 months ago (2014-08-13 21:35:45 UTC) #15
liyanhou
Addressed comments, fixed and refactored browser test. Could you take another look? Thank you! https://codereview.chromium.org/456223002/diff/120001/chrome/test/data/extensions/api_test/notification_provider/basic_usage/background.js ...
6 years, 4 months ago (2014-08-14 16:18:14 UTC) #16
dewittj
lgtm + nits https://codereview.chromium.org/456223002/diff/200001/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/456223002/diff/200001/chrome/test/data/extensions/api_test/notification_provider/basic_usage/background.js#newcode81 chrome/test/data/extensions/api_test/notification_provider/basic_usage/background.js:81: senderId, nit: only indent the params ...
6 years, 4 months ago (2014-08-14 20:54:58 UTC) #17
liyanhou
https://codereview.chromium.org/456223002/diff/200001/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/456223002/diff/200001/chrome/test/data/extensions/api_test/notification_provider/basic_usage/background.js#newcode81 chrome/test/data/extensions/api_test/notification_provider/basic_usage/background.js:81: senderId, On 2014/08/14 20:54:58, dewittj wrote: > nit: only ...
6 years, 4 months ago (2014-08-14 21:06:07 UTC) #18
liyanhou
The CQ bit was checked by liyanhou@chromium.org
6 years, 4 months ago (2014-08-14 21:15:06 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/liyanhou@chromium.org/456223002/220001
6 years, 4 months ago (2014-08-14 21:19:13 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-15 05:33:48 UTC) #21
commit-bot: I haz the power
6 years, 4 months ago (2014-08-15 09:12:18 UTC) #22
Message was sent while issue was closed.
Committed patchset #10 (220001) as 289823

Powered by Google App Engine
This is Rietveld 408576698