summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authornhiroki <nhiroki@chromium.org>2015-08-31 01:37:27 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-31 08:38:08 +0000
commit63b9bba8136cbb309042105d6204aa70fa351294 (patch)
tree7605a2f3a57beca3c558d58543abf777d1252228 /content
parente6399dcf78b11d03a798a5cc0abae4b31a135ef1 (diff)
downloadchromium_src-63b9bba8136cbb309042105d6204aa70fa351294.zip
chromium_src-63b9bba8136cbb309042105d6204aa70fa351294.tar.gz
chromium_src-63b9bba8136cbb309042105d6204aa70fa351294.tar.bz2
ServiceWorker: Remove an outdated quick fix
This quick fix was used for a case that a registration was destroyed during starting a service worker, but the bug was fixed. BUG=459916, 465254 Review URL: https://codereview.chromium.org/1314033004 Cr-Commit-Position: refs/heads/master@{#346359}
Diffstat (limited to 'content')
-rw-r--r--content/browser/service_worker/service_worker_dispatcher_host.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/content/browser/service_worker/service_worker_dispatcher_host.cc b/content/browser/service_worker/service_worker_dispatcher_host.cc
index 2de8b88..ad56cdd 100644
--- a/content/browser/service_worker/service_worker_dispatcher_host.cc
+++ b/content/browser/service_worker/service_worker_dispatcher_host.cc
@@ -772,9 +772,6 @@ void ServiceWorkerDispatcherHost::OnSetHostedVersionId(
ServiceWorkerRegistration* registration =
GetContext()->GetLiveRegistration(version->registration_id());
DCHECK(registration);
- // TODO(ksakamoto): This is a quick fix for crbug.com/459916.
- if (!registration)
- return;
// Set the document URL to the script url in order to allow
// register/unregister/getRegistration on ServiceWorkerGlobalScope.