Commit 8a2b7f16 authored by Pavel Shmakov's avatar Pavel Shmakov Committed by Commit Bot

Check for native load in NotificationPermissionUpdater

When NotificationPermissionUpdater#onClientAppUninstalled is called,
native might not have been loaded, so we need a
ChromeFeatureList.isInitialized() check.

Change-Id: Idc478bfc880264b15f0ad5303f87aba0756ded04
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1782853
Auto-Submit: Pavel Shmakov <pshmakov@chromium.org>
Reviewed-by: default avatarPeter Conn <peconn@chromium.org>
Commit-Queue: Peter Conn <peconn@chromium.org>
Cr-Commit-Position: refs/heads/master@{#693164}
parent 7f0c592c
...@@ -89,7 +89,7 @@ public class NotificationPermissionUpdater { ...@@ -89,7 +89,7 @@ public class NotificationPermissionUpdater {
* app was installed. * app was installed.
*/ */
public void onClientAppUninstalled(Origin origin) { public void onClientAppUninstalled(Origin origin) {
if (!ChromeFeatureList.isEnabled( if (ChromeFeatureList.isInitialized() && !ChromeFeatureList.isEnabled(
ChromeFeatureList.TRUSTED_WEB_ACTIVITY_NOTIFICATION_DELEGATION_ENROLMENT)) { ChromeFeatureList.TRUSTED_WEB_ACTIVITY_NOTIFICATION_DELEGATION_ENROLMENT)) {
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment