| 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 4c8be6d7117ef9755b9c9fd0528f723d3c567220..a00f19d92b9a15d824950ce1d4e978c9c6b14dc4 100644
|
| --- a/third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
|
| +++ b/third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
|
| @@ -13,6 +13,7 @@
|
| #include "modules/notifications/NotificationData.h"
|
| #include "modules/notifications/NotificationOptions.h"
|
| #include "modules/serviceworkers/ServiceWorkerRegistration.h"
|
| +#include "platform/Histogram.h"
|
| #include "public/platform/Platform.h"
|
| #include "public/platform/WebSecurityOrigin.h"
|
| #include "public/platform/modules/notifications/WebNotificationData.h"
|
| @@ -60,7 +61,8 @@ ScriptPromise ServiceWorkerRegistrationNotifications::showNotification(ScriptSta
|
| return exceptionState.reject(scriptState);
|
|
|
| // Log number of actions developer provided in linear histogram: 0 -> underflow bucket, 1-16 -> distinct buckets, 17+ -> overflow bucket.
|
| - Platform::current()->histogramEnumeration("Notifications.PersistentNotificationActionCount", options.actions().size(), 17);
|
| + DEFINE_THREAD_SAFE_STATIC_LOCAL(EnumerationHistogram, notificationCountHistogram, new EnumerationHistogram("Notifications.PersistentNotificationActionCount", 17));
|
| + notificationCountHistogram.count(options.actions().size());
|
|
|
| ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState);
|
| ScriptPromise promise = resolver->promise();
|
|
|