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 d916a0503ac76eaef6352b86f9d4853b8c0167e6..cdb3090b4873658552c5e3497a66ea4706a9a864 100644 |
--- a/third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp |
+++ b/third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp |
@@ -60,6 +60,9 @@ ScriptPromise ServiceWorkerRegistrationNotifications::showNotification(ScriptSta |
if (exceptionState.hadException()) |
return exceptionState.reject(scriptState); |
+ // Log number of actions developer provided, even if it's more than we currently support. |
+ Platform::current()->histogramCustomCounts("Notifications.PersistentNotificationActionCount", options.actions().size(), 0, 10, 12 /* one extra bucket for > 10 */); |
Alexei Svitkine (slow)
2015/10/28 19:09:09
If you want a single bucket for each distinct coun
johnme
2015/10/29 14:24:41
We don't strictly care about having distinct bucke
Alexei Svitkine (slow)
2015/10/29 19:24:05
Well, the way you're using counts() right now is e
johnme
2015/11/23 15:06:09
Gotcha. I've switched to histogramEnumeration/Line
|
+ |
ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState); |
ScriptPromise promise = resolver->promise(); |