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

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: 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/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..e943aba72650a2a313fa7b592de2d879ce6a6891 100644
--- a/content/browser/navigator_connect/navigator_connect_context_impl.cc
+++ b/content/browser/navigator_connect/navigator_connect_context_impl.cc
@@ -5,6 +5,7 @@
#include "content/browser/navigator_connect/navigator_connect_context_impl.h"
#include <stdint.h>
+#include <vector>
#include "base/stl_util.h"
#include "content/browser/message_port_service.h"
@@ -154,6 +155,7 @@ void NavigatorConnectContextImpl::GotServiceWorkerRegistration(
registration->pattern().GetOrigin();
active_version->RunAfterStartWorker(
+ ServiceWorkerMetrics::EventType::SERVICE_PORT_CONNECT,
base::Bind(&NavigatorConnectContextImpl::DispatchConnectEvent, this,
callback, client_port_id, service_port_id, registration,
make_scoped_refptr(active_version)),

Powered by Google App Engine
This is Rietveld 408576698