| 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 2179de0ac991c82fb271161206d2c4d1a8aadec6..7b8e2735952c8462b715482140d9415834952bbc 100644
|
| --- a/third_party/WebKit/Source/modules/notifications/Notification.cpp
|
| +++ b/third_party/WebKit/Source/modules/notifications/Notification.cpp
|
| @@ -50,6 +50,7 @@
|
| #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 "wtf/Functional.h"
|
|
|
| @@ -373,11 +374,7 @@ ScriptPromise Notification::requestPermission(ScriptState* scriptState, Notifica
|
|
|
| size_t Notification::maxActions()
|
| {
|
| - // Returns a fixed number for unit tests, which run without the availability of the Platform object.
|
| - if (!notificationManager())
|
| - return 2;
|
| -
|
| - return notificationManager()->maxActions();
|
| + return kWebNotificationMaxActions;
|
| }
|
|
|
| DispatchEventResult Notification::dispatchEventInternal(Event* event)
|
|
|