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

Unified Diff: content/browser/notifications/notification_event_dispatcher_impl.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: 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/notifications/notification_event_dispatcher_impl.cc
diff --git a/content/browser/notifications/notification_event_dispatcher_impl.cc b/content/browser/notifications/notification_event_dispatcher_impl.cc
index ca125fa584f72a2b69200f8bb06381d684351903..15d9a111170b8d11c8b051257a68d79cb6576625 100644
--- a/content/browser/notifications/notification_event_dispatcher_impl.cc
+++ b/content/browser/notifications/notification_event_dispatcher_impl.cc
@@ -232,7 +232,7 @@ void DoDispatchNotificationClickEvent(
&DispatchNotificationClickEventOnWorker,
make_scoped_refptr(service_worker_registration->active_version()),
notification_database_data, action_index, status_callback),
- status_callback);
+ status_callback, ServiceWorkerMetrics::EventType::NOTIFICATION_CLICK);
}
// -----------------------------------------------------------------------------
@@ -303,7 +303,8 @@ void DoDispatchNotificationCloseEvent(
&DispatchNotificationCloseEventOnWorker,
make_scoped_refptr(service_worker_registration->active_version()),
notification_database_data, dispatch_event_callback),
- dispatch_event_callback);
+ dispatch_event_callback,
+ ServiceWorkerMetrics::EventType::NOTIFICATION_CLOSE);
} else {
dispatch_event_callback.Run(ServiceWorkerStatusCode::SERVICE_WORKER_OK);
}

Powered by Google App Engine
This is Rietveld 408576698