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

Unified Diff: content/browser/geofencing/geofencing_manager.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/geofencing/geofencing_manager.cc
diff --git a/content/browser/geofencing/geofencing_manager.cc b/content/browser/geofencing/geofencing_manager.cc
index 242b588b80d3a033373942a5edbf2ec86e12f60e..e420d5fafd663373f0ec1b52afa88f6f343bb73e 100644
--- a/content/browser/geofencing/geofencing_manager.cc
+++ b/content/browser/geofencing/geofencing_manager.cc
@@ -395,6 +395,7 @@ void GeofencingManager::DeliverGeofencingEvent(
// until the callback dies. Otherwise the registration could be released when
// this method returns - before the event is delivered to the service worker.
active_version->RunAfterStartWorker(
+ ServiceWorkerMetrics::EventType::GEOFENCING,
base::Bind(&GeofencingManager::DeliverEventToRunningWorker, this,
service_worker_registration, event_type,
registration->region_id, registration->region,

Powered by Google App Engine
This is Rietveld 408576698