| Index: third_party/WebKit/Source/modules/notifications/Notification.cpp
|
| diff --git a/third_party/WebKit/Source/modules/notifications/Notification.cpp b/third_party/WebKit/Source/modules/notifications/Notification.cpp
|
| index 42da08ac1f503960eb58cc9b1236cadb5efc0e63..bd8f999771935b2dfa0c45d14f5a7a110f4b9b79 100644
|
| --- a/third_party/WebKit/Source/modules/notifications/Notification.cpp
|
| +++ b/third_party/WebKit/Source/modules/notifications/Notification.cpp
|
| @@ -44,17 +44,14 @@
|
| #include "modules/notifications/NotificationData.h"
|
| #include "modules/notifications/NotificationManager.h"
|
| #include "modules/notifications/NotificationOptions.h"
|
| -#include "modules/notifications/NotificationPermissionClient.h"
|
| #include "modules/notifications/NotificationResourcesLoader.h"
|
| #include "platform/RuntimeEnabledFeatures.h"
|
| #include "platform/UserGestureIndicator.h"
|
| #include "public/platform/Platform.h"
|
| #include "public/platform/WebSecurityOrigin.h"
|
| -#include "public/platform/WebString.h"
|
| #include "public/platform/modules/notifications/WebNotificationAction.h"
|
| #include "public/platform/modules/notifications/WebNotificationConstants.h"
|
| #include "public/platform/modules/notifications/WebNotificationManager.h"
|
| -#include "public/platform/modules/permissions/permission_status.mojom-blink.h"
|
| #include "wtf/Assertions.h"
|
| #include "wtf/Functional.h"
|
|
|
| @@ -354,14 +351,7 @@ String Notification::permission(ExecutionContext* context)
|
|
|
| ScriptPromise Notification::requestPermission(ScriptState* scriptState, NotificationPermissionCallback* deprecatedCallback)
|
| {
|
| - ExecutionContext* context = scriptState->getExecutionContext();
|
| - if (NotificationPermissionClient* permissionClient = NotificationPermissionClient::from(context))
|
| - return permissionClient->requestPermission(scriptState, deprecatedCallback);
|
| -
|
| - // The context has been detached. Return a promise that will never settle.
|
| - DCHECK(context->activeDOMObjectsAreStopped());
|
| -
|
| - return ScriptPromise();
|
| + return NotificationManager::from(scriptState->getExecutionContext())->requestPermission(scriptState, deprecatedCallback);
|
| }
|
|
|
| size_t Notification::maxActions()
|
|
|