| 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 5ef92123bcadfe2bd22e9a2ef7dcf8f8dfdbc6cd..c2aafb1a1eb82875faade6f3ab7dca5ce7e27e55 100644
|
| --- a/third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
|
| +++ b/third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
|
| @@ -11,7 +11,6 @@
|
| #include "modules/notifications/GetNotificationOptions.h"
|
| #include "modules/notifications/Notification.h"
|
| #include "modules/notifications/NotificationData.h"
|
| -#include "modules/notifications/NotificationManager.h"
|
| #include "modules/notifications/NotificationOptions.h"
|
| #include "modules/notifications/NotificationResourcesLoader.h"
|
| #include "modules/serviceworkers/ServiceWorkerRegistration.h"
|
| @@ -60,7 +59,7 @@
|
| return ScriptPromise::reject(scriptState, V8ThrowException::createTypeError(scriptState->isolate(), "No active registration available on the ServiceWorkerRegistration."));
|
|
|
| // If permission for notification's origin is not "granted", reject promise with a TypeError exception, and terminate these substeps.
|
| - if (NotificationManager::from(executionContext)->permissionStatus() != mojom::blink::PermissionStatus::GRANTED)
|
| + if (Notification::checkPermission(executionContext) != mojom::blink::PermissionStatus::GRANTED)
|
| return ScriptPromise::reject(scriptState, V8ThrowException::createTypeError(scriptState->isolate(), "No notification permission has been granted for this origin."));
|
|
|
| // Validate the developer-provided values to get a WebNotificationData object.
|
|
|