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

Unified Diff: content/browser/service_worker/service_worker_handle_unittest.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_handle_unittest.cc
diff --git a/content/browser/service_worker/service_worker_handle_unittest.cc b/content/browser/service_worker/service_worker_handle_unittest.cc
index 6869c360cb7553bf7291e10546209b3d6e734364..ee4c20629994dc10f11e612c57e15e5495dc67dd 100644
--- a/content/browser/service_worker/service_worker_handle_unittest.cc
+++ b/content/browser/service_worker/service_worker_handle_unittest.cc
@@ -79,10 +79,9 @@ class ServiceWorkerHandleTest : public testing::Test {
dispatcher_host_->Init(helper_->context_wrapper());
const GURL pattern("http://www.example.com/");
- registration_ = new ServiceWorkerRegistration(
- pattern,
- 1L,
- helper_->context()->AsWeakPtr());
+ registration_ =
+ new ServiceWorkerRegistration(ServiceWorkerRegistrationOptions(pattern),
+ 1L, helper_->context()->AsWeakPtr());
version_ = new ServiceWorkerVersion(
registration_.get(),
GURL("http://www.example.com/service_worker.js"),

Powered by Google App Engine
This is Rietveld 408576698