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

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

Issue 2771823002: Implement updateViaCache flag and no-cache by default for main service worker scripts
Patch Set: change useCache to updateViaCache Created 3 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_context_core.cc
diff --git a/content/browser/service_worker/service_worker_context_core.cc b/content/browser/service_worker/service_worker_context_core.cc
index 751da4a3519c21b0928f0f889384174e5c9d0256..d8620e07a59993747b8bc520c7521ca2c96be35a 100644
--- a/content/browser/service_worker/service_worker_context_core.cc
+++ b/content/browser/service_worker/service_worker_context_core.cc
@@ -413,20 +413,16 @@ ServiceWorkerProviderHost* ServiceWorkerContextCore::GetProviderHostByClientID(
}
void ServiceWorkerContextCore::RegisterServiceWorker(
- const GURL& pattern,
const GURL& script_url,
+ const ServiceWorkerRegistrationOptions& options,
ServiceWorkerProviderHost* provider_host,
const RegistrationCallback& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
was_service_worker_registered_ = true;
job_coordinator_->Register(
- pattern,
- script_url,
- provider_host,
- base::Bind(&ServiceWorkerContextCore::RegistrationComplete,
- AsWeakPtr(),
- pattern,
- callback));
+ script_url, options, provider_host,
+ base::Bind(&ServiceWorkerContextCore::RegistrationComplete, AsWeakPtr(),
+ options.scope, callback));
}
void ServiceWorkerContextCore::UpdateServiceWorker(

Powered by Google App Engine
This is Rietveld 408576698