Index: content/browser/service_worker/service_worker_version.cc |
diff --git a/content/browser/service_worker/service_worker_version.cc b/content/browser/service_worker/service_worker_version.cc |
index 2767f67cd234741e5eba9a58dc047ab7c4178414..26b98a58635b1c4ff7b5264cb8ef3f3b34250300 100644 |
--- a/content/browser/service_worker/service_worker_version.cc |
+++ b/content/browser/service_worker/service_worker_version.cc |
@@ -914,14 +914,7 @@ void ServiceWorkerVersion::OnDetached(EmbeddedWorkerStatus old_status) { |
} |
void ServiceWorkerVersion::OnScriptLoaded() { |
- DCHECK(GetMainScriptHttpResponseInfo() || |
- // TODO(scottmg|falken): This DCHECK is currently triggered in |
- // --network-service because ServiceWorkerReadFromCacheJob isn't being |
- // used to retrieve the service worker js. This should be removed once |
- // that's done. |
- (IsBrowserSideNavigationEnabled() && |
- base::CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kEnableNetworkService))); |
+ DCHECK(GetMainScriptHttpResponseInfo()); |
if (IsInstalled(status())) |
UMA_HISTOGRAM_BOOLEAN("ServiceWorker.ScriptLoadSuccess", true); |
} |