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

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

Issue 2968123002: Introduce ServiceWorkerRegistrationOptions struct for service worker options (Closed)
Patch Set: address more comments Created 3 years, 5 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/link_header_support_unittest.cc
diff --git a/content/browser/service_worker/link_header_support_unittest.cc b/content/browser/service_worker/link_header_support_unittest.cc
index e77c68d9517028742911f3d5173f06adc8a90dbd..260afb1fff6a9c3ad8647540c61433e8aeb79f19 100644
--- a/content/browser/service_worker/link_header_support_unittest.cc
+++ b/content/browser/service_worker/link_header_support_unittest.cc
@@ -118,8 +118,9 @@ class LinkHeaderServiceWorkerTest : public ::testing::Test {
context()->AddProviderHost(std::move(host));
scoped_refptr<ServiceWorkerRegistration> registration =
- new ServiceWorkerRegistration(GURL("https://host/scope"), 1L,
- context()->AsWeakPtr());
+ new ServiceWorkerRegistration(
+ ServiceWorkerRegistrationOptions(GURL("https://host/scope")), 1L,
+ context()->AsWeakPtr());
scoped_refptr<ServiceWorkerVersion> version = new ServiceWorkerVersion(
registration.get(), GURL("https://host/script.js"), 1L,
context()->AsWeakPtr());

Powered by Google App Engine
This is Rietveld 408576698