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

Unified Diff: third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp

Issue 2557033002: Remove ContextLifecycleObserver from NotificationManager (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
diff --git a/third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp b/third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
index 482eaf42f0de5311ce13094337df1087d0d9dea5..7b6b9930efb7a7881b9238db3615f2c291e77a98 100644
--- a/third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
+++ b/third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
@@ -79,7 +79,8 @@ ScriptPromise ServiceWorkerRegistrationNotifications::showNotification(
// If permission for notification's origin is not "granted", reject the
// promise with a TypeError exception, and terminate these substeps.
- if (NotificationManager::from(executionContext)->permissionStatus() !=
+ if (NotificationManager::from(executionContext)
+ ->permissionStatus(executionContext) !=
mojom::blink::PermissionStatus::GRANTED)
return ScriptPromise::reject(
scriptState,

Powered by Google App Engine
This is Rietveld 408576698