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

Unified Diff: content/browser/service_worker/service_worker_dispatcher_host.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/service_worker/service_worker_dispatcher_host.cc
diff --git a/content/browser/service_worker/service_worker_dispatcher_host.cc b/content/browser/service_worker/service_worker_dispatcher_host.cc
index 12a1dfc1631b86b179d60343a2ce3ac777c94f78..c86d2abe3e0a8a9b2aeedef7bda597c737fe3806 100644
--- a/content/browser/service_worker/service_worker_dispatcher_host.cc
+++ b/content/browser/service_worker/service_worker_dispatcher_host.cc
@@ -831,8 +831,11 @@ void ServiceWorkerDispatcherHost::OnSetHostedVersionId(int provider_id,
// We might not be STARTING if the stop sequence was entered (STOPPING) or
// ended up being detached (STOPPED).
ServiceWorkerVersion* version = GetContext()->GetLiveVersion(version_id);
- if (!version || version->running_status() != ServiceWorkerVersion::STARTING)
+ if (!version ||
+ version->running_status() !=
+ ServiceWorkerVersion::RunningStatus::STARTING) {
return;
+ }
if (!provider_host->SetHostedVersion(version)) {
bad_message::ReceivedBadMessage(this, bad_message::SWDH_SET_HOSTED_VERSION);

Powered by Google App Engine
This is Rietveld 408576698