| 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);
|
|
|