| 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 470190f8665461cb6f96a9a9a0e089a99d2f911c..6d6763fdadfcd8045472cc3314e2e8a54423e1c6 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"
|
|
|
| @@ -359,14 +356,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()
|
|
|