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

Issue 2922473003: [Android] Implement GetRuleIterator for channels provider (Closed)

Created:
3 years, 6 months ago by awdf
Modified:
3 years, 6 months ago
Reviewers:
Peter Beverloo, raymes
CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-notifications_chromium.org, awdf+watch_chromium.org, agrieve+watch_chromium.org, picksi1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Implement GetRuleIterator for channels provider - Now the Provider retrieves all the site notification channels and uses their statuses (ENABLED/BLOCKED) to return a RuleIterator over notification permissions. - Note that the Java side still needs to be implemented, right now it just returns an empty array. Bug: 700377 Review-Url: https://codereview.chromium.org/2922473003 Cr-Commit-Position: refs/heads/master@{#478279} Committed: https://chromium.googlesource.com/chromium/src/+/1af5bbb0e6f4c1ccc79fac777345d30e9e1c8061

Patch Set 1 #

Total comments: 16

Patch Set 2 : Replying to comments #

Total comments: 23

Patch Set 3 : Responding to more comments #

Patch Set 4 : rebase and added a comment about incognito #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -5 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationSettingsBridge.java View 1 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_channels_provider_android.h View 1 2 3 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/notifications/notification_channels_provider_android.cc View 1 2 3 4 chunks +68 lines, -2 lines 0 comments Download
M chrome/browser/notifications/notification_channels_provider_android_unittest.cc View 1 2 3 3 chunks +88 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 21 (10 generated)
Peter Beverloo
Cool! https://codereview.chromium.org/2922473003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationSettingsBridge.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationSettingsBridge.java (right): https://codereview.chromium.org/2922473003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationSettingsBridge.java#newcode66 chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationSettingsBridge.java:66: private int getStatus() { Should this (and `int ...
3 years, 6 months ago (2017-06-02 15:14:26 UTC) #3
awdf
https://codereview.chromium.org/2922473003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationSettingsBridge.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationSettingsBridge.java (right): https://codereview.chromium.org/2922473003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationSettingsBridge.java#newcode66 chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationSettingsBridge.java:66: private int getStatus() { On 2017/06/02 15:14:26, Peter Beverloo ...
3 years, 6 months ago (2017-06-02 16:59:49 UTC) #4
raymes
lgtm https://codereview.chromium.org/2922473003/diff/20001/chrome/browser/notifications/notification_channels_provider_android.cc File chrome/browser/notifications/notification_channels_provider_android.cc (right): https://codereview.chromium.org/2922473003/diff/20001/chrome/browser/notifications/notification_channels_provider_android.cc#newcode85 chrome/browser/notifications/notification_channels_provider_android.cc:85: return CONTENT_SETTING_DEFAULT; Arguably UNAVAILABLE doesn't really map to ...
3 years, 6 months ago (2017-06-04 23:51:22 UTC) #5
Peter Beverloo
lgtm https://codereview.chromium.org/2922473003/diff/20001/chrome/browser/notifications/notification_channels_provider_android.cc File chrome/browser/notifications/notification_channels_provider_android.cc (right): https://codereview.chromium.org/2922473003/diff/20001/chrome/browser/notifications/notification_channels_provider_android.cc#newcode96 chrome/browser/notifications/notification_channels_provider_android.cc:96: ~ChannelsRuleIterator() override {} micro nit: {} -> = ...
3 years, 6 months ago (2017-06-05 12:40:24 UTC) #6
awdf
https://codereview.chromium.org/2922473003/diff/20001/chrome/browser/notifications/notification_channels_provider_android.cc File chrome/browser/notifications/notification_channels_provider_android.cc (right): https://codereview.chromium.org/2922473003/diff/20001/chrome/browser/notifications/notification_channels_provider_android.cc#newcode85 chrome/browser/notifications/notification_channels_provider_android.cc:85: return CONTENT_SETTING_DEFAULT; On 2017/06/04 23:51:21, raymes wrote: > Arguably ...
3 years, 6 months ago (2017-06-05 16:29:26 UTC) #7
Peter Beverloo
https://codereview.chromium.org/2922473003/diff/20001/chrome/browser/notifications/notification_channels_provider_android.cc File chrome/browser/notifications/notification_channels_provider_android.cc (right): https://codereview.chromium.org/2922473003/diff/20001/chrome/browser/notifications/notification_channels_provider_android.cc#newcode137 chrome/browser/notifications/notification_channels_provider_android.cc:137: if (content_type != CONTENT_SETTINGS_TYPE_NOTIFICATIONS || incognito || On 2017/06/05 ...
3 years, 6 months ago (2017-06-05 17:12:50 UTC) #8
awdf
https://codereview.chromium.org/2922473003/diff/20001/chrome/browser/notifications/notification_channels_provider_android.cc File chrome/browser/notifications/notification_channels_provider_android.cc (right): https://codereview.chromium.org/2922473003/diff/20001/chrome/browser/notifications/notification_channels_provider_android.cc#newcode137 chrome/browser/notifications/notification_channels_provider_android.cc:137: if (content_type != CONTENT_SETTINGS_TYPE_NOTIFICATIONS || incognito || Re: > ...
3 years, 6 months ago (2017-06-05 17:33:37 UTC) #9
raymes
lgtm but please see the note about SetWebsiteSetting in particular https://codereview.chromium.org/2922473003/diff/20001/chrome/browser/notifications/notification_channels_provider_android.cc File chrome/browser/notifications/notification_channels_provider_android.cc (right): https://codereview.chromium.org/2922473003/diff/20001/chrome/browser/notifications/notification_channels_provider_android.cc#newcode137 ...
3 years, 6 months ago (2017-06-06 01:39:04 UTC) #10
awdf
https://codereview.chromium.org/2922473003/diff/20001/chrome/browser/notifications/notification_channels_provider_android.cc File chrome/browser/notifications/notification_channels_provider_android.cc (right): https://codereview.chromium.org/2922473003/diff/20001/chrome/browser/notifications/notification_channels_provider_android.cc#newcode137 chrome/browser/notifications/notification_channels_provider_android.cc:137: if (content_type != CONTENT_SETTINGS_TYPE_NOTIFICATIONS || incognito || On 2017/06/06 ...
3 years, 6 months ago (2017-06-08 15:53:46 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2922473003/80001
3 years, 6 months ago (2017-06-09 14:27:24 UTC) #18
commit-bot: I haz the power
3 years, 6 months ago (2017-06-09 15:09:24 UTC) #21
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/1af5bbb0e6f4c1ccc79fac777345...

Powered by Google App Engine
This is Rietveld 408576698