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

Unified Diff: content/browser/background_sync/background_sync_manager.cc

Issue 2039743003: Introduce ServiceWorker.ActivatedWorkerPreparationForMainFrame.Time UMA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move GetWorkerPreparationSuffix Created 4 years, 6 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/background_sync/background_sync_manager.cc
diff --git a/content/browser/background_sync/background_sync_manager.cc b/content/browser/background_sync/background_sync_manager.cc
index 2d5880a07dc110a5e78596672901f4edc94b6938..f7058ac215f33a535eca65f0d4c80a4d91b01762 100644
--- a/content/browser/background_sync/background_sync_manager.cc
+++ b/content/browser/background_sync/background_sync_manager.cc
@@ -755,7 +755,8 @@ void BackgroundSyncManager::DispatchSyncEvent(
DCHECK_CURRENTLY_ON(BrowserThread::IO);
DCHECK(active_version);
- if (active_version->running_status() != ServiceWorkerVersion::RUNNING) {
+ if (active_version->running_status() !=
+ ServiceWorkerVersion::RunningStatus::RUNNING) {
active_version->RunAfterStartWorker(
ServiceWorkerMetrics::EventType::SYNC,
base::Bind(&BackgroundSyncManager::DispatchSyncEvent,

Powered by Google App Engine
This is Rietveld 408576698