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

Unified Diff: content/browser/navigator_connect/navigator_connect_context_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/navigator_connect/navigator_connect_context_impl.cc
diff --git a/content/browser/navigator_connect/navigator_connect_context_impl.cc b/content/browser/navigator_connect/navigator_connect_context_impl.cc
index 5aaeba1a86b6c1d70325b2232a12fd5d493b96d8..d858bb1c1b026caee5ea5171c82d6b193614e6e7 100644
--- a/content/browser/navigator_connect/navigator_connect_context_impl.cc
+++ b/content/browser/navigator_connect/navigator_connect_context_impl.cc
@@ -158,7 +158,8 @@ void NavigatorConnectContextImpl::GotServiceWorkerRegistration(
callback, client_port_id, service_port_id, registration,
make_scoped_refptr(active_version)),
base::Bind(&NavigatorConnectContextImpl::OnConnectError, this, callback,
- client_port_id, service_port_id));
+ client_port_id, service_port_id),
+ ServiceWorkerMetrics::EventType::SERVICE_PORT_CONNECT);
}
void NavigatorConnectContextImpl::DispatchConnectEvent(

Powered by Google App Engine
This is Rietveld 408576698