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

Unified Diff: content/browser/service_worker/service_worker_job_coordinator.cc

Issue 1928443003: service worker: Update job gets the script url when the job starts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 8 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
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_job_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_job_coordinator.cc
diff --git a/content/browser/service_worker/service_worker_job_coordinator.cc b/content/browser/service_worker/service_worker_job_coordinator.cc
index 54542b2d7153bc9dd7008134f12387787807cd53..916d7147eac0c57d462e1aea292cd9c5b81db7f3 100644
--- a/content/browser/service_worker/service_worker_job_coordinator.cc
+++ b/content/browser/service_worker/service_worker_job_coordinator.cc
@@ -133,7 +133,6 @@ void ServiceWorkerJobCoordinator::Update(
ServiceWorkerRegistration* registration,
bool force_bypass_cache) {
DCHECK(registration);
- DCHECK(registration->GetNewestVersion());
job_queues_[registration->pattern()].Push(
base::WrapUnique<ServiceWorkerRegisterJobBase>(
new ServiceWorkerRegisterJob(context_, registration,
@@ -148,7 +147,6 @@ void ServiceWorkerJobCoordinator::Update(
ServiceWorkerProviderHost* provider_host,
const ServiceWorkerRegisterJob::RegistrationCallback& callback) {
DCHECK(registration);
- DCHECK(registration->GetNewestVersion());
ServiceWorkerRegisterJob* queued_job = static_cast<ServiceWorkerRegisterJob*>(
job_queues_[registration->pattern()].Push(
base::WrapUnique<ServiceWorkerRegisterJobBase>(
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698