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

Unified Diff: content/browser/service_worker/service_worker_registration.cc

Issue 1100763002: Inject CanAddURLToHistory into TopSitesImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs
Patch Set: Fix error introduced during rebase Created 5 years, 8 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/service_worker/service_worker_registration.cc
diff --git a/content/browser/service_worker/service_worker_registration.cc b/content/browser/service_worker/service_worker_registration.cc
index 9c556eff9caec47c7d1c3d1fbd0226815f315e5a..4f5e6113b327e454adeb5ea71ef157a8b6f7073e 100644
--- a/content/browser/service_worker/service_worker_registration.cc
+++ b/content/browser/service_worker/service_worker_registration.cc
@@ -6,6 +6,7 @@
#include "content/browser/service_worker/service_worker_context_core.h"
#include "content/browser/service_worker/service_worker_info.h"
+#include "content/browser/service_worker/service_worker_metrics.h"
#include "content/browser/service_worker/service_worker_register_job.h"
#include "content/browser/service_worker/service_worker_utils.h"
#include "content/public/browser/browser_thread.h"
@@ -306,6 +307,8 @@ void ServiceWorkerRegistration::OnActivateEventFinished(
ServiceWorkerStatusCode status) {
if (!context_ || activating_version != active_version())
return;
+ ServiceWorkerMetrics::RecordActivateEventStatus(status);
+
// "If activateFailed is true, then:..."
if (status != SERVICE_WORKER_OK) {
// "Set registration's active worker to null." (The spec's step order may

Powered by Google App Engine
This is Rietveld 408576698