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

Unified Diff: content/browser/push_messaging/push_messaging_router.cc

Issue 1795863006: service worker: Attribute purpose to start worker attempts for UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: patch for landing? Created 4 years, 9 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: content/browser/push_messaging/push_messaging_router.cc
diff --git a/content/browser/push_messaging/push_messaging_router.cc b/content/browser/push_messaging/push_messaging_router.cc
index 7bc469be5459f5397c502a2e721f858852a957d7..dce24a9248635dbfd4e49f249f11cd408f5cc41f 100644
--- a/content/browser/push_messaging/push_messaging_router.cc
+++ b/content/browser/push_messaging/push_messaging_router.cc
@@ -91,6 +91,7 @@ void PushMessagingRouter::FindServiceWorkerRegistrationCallback(
// released when this method returns - before the event is delivered to the
// service worker.
version->RunAfterStartWorker(
+ ServiceWorkerMetrics::EventType::PUSH,
base::Bind(&PushMessagingRouter::DeliverMessageToWorker,
make_scoped_refptr(version), service_worker_registration,
payload, deliver_message_callback),

Powered by Google App Engine
This is Rietveld 408576698