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

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

Issue 1901133002: Move the notification constants to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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/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)
« no previous file with comments | « content/content_common.gypi ('k') | third_party/WebKit/Source/modules/notifications/NotificationResourcesLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698