Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revoke site-level Notifications permission."
This reverts commit 9a8dfe0. Reason for revert: suspect causing lint failure on android bots. Sample build faliure: https://ci.chromium.org/ui/p/chromium/builders/ci/android-archive-rel/29557/overview Sample log: ../../chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java:586: Warning: This method should only be accessed from tests or within private scope [VisibleForTests] NotificationSystemStatusUtil.getAppNotificationStatus() ~~~~~~~~~~~~~~~~~~~~~~~~ 0 errors, 1 warnings (506 errors, 235 warnings filtered by baseline lint-baseline.xml) Original change's description: > Revoke site-level Notifications permission. > > This CL revokes site-level Notifications permission if Chrome has no > app-level Notifications permission on Android. There is a 3-day grace > period that starts as soon as Chrome tries to show a notification but > has no Notifications permissions. > > In this CL I'm moving triggering Notifications permission revocation > logic from `PushMessagingServiceImpl` to `NotificationPlatformBridge`. > The reason for that is we believe `PushMessagingServiceImpl` is too > early in the push message processing pipeline and in case of a cold > launch it may have inconsistent results regarding webapps verification. > > `NotificationPlatformBridge::displayNotificationInternal` is at the end > of the pipeline and allows filtering webapps from sites without side > effects. > > In the current iteration, we entirely skip the webapps. After a > successful launch, I will follow up by including webapps in > permission revocation. > > Bug: 1378515 > Change-Id: I786ac8c122b96b2e4539b59728f65db2d44a470e > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4030307 > Reviewed-by: Peter Beverloo <peter@chromium.org> > Reviewed-by: Ravjit Uppal <ravjit@chromium.org> > Reviewed-by: Avi Drissman <avi@chromium.org> > Commit-Queue: Illia Klimov <elklm@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1075636} Bug: 1378515 Change-Id: I274cde3ab168aee62cd7c3e3398a98827f68e6e8 No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4054886 Commit-Queue: Takashi Sakamoto <tasak@google.com> Owners-Override: Takashi Sakamoto <tasak@google.com> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/heads/main@{#1075660}
- Loading branch information
Showing
9 changed files
with
373 additions
and
387 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 0 additions & 47 deletions
47
...ndroid/java/src/org/chromium/chrome/browser/notifications/PushMessagingServiceBridge.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.