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

Unified Diff: content/browser/background_sync/background_sync_service_impl_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/background_sync/background_sync_service_impl_unittest.cc
diff --git a/content/browser/background_sync/background_sync_service_impl_unittest.cc b/content/browser/background_sync/background_sync_service_impl_unittest.cc
index e70bbd4001f2dd2f5009cdaaaa8f1f820b369232..4c1bfe594da76bcc1a24a6c917a3ca6bdd948bfc 100644
--- a/content/browser/background_sync/background_sync_service_impl_unittest.cc
+++ b/content/browser/background_sync/background_sync_service_impl_unittest.cc
@@ -163,7 +163,8 @@ class BackgroundSyncServiceImplTest : public testing::Test {
void CreateServiceWorkerRegistration() {
bool called = false;
embedded_worker_helper_->context()->RegisterServiceWorker(
- GURL(kServiceWorkerPattern), GURL(kServiceWorkerScript), NULL,
+ GURL(kServiceWorkerScript),
+ ServiceWorkerRegistrationOptions(GURL(kServiceWorkerPattern)), nullptr,
base::AdaptCallbackForRepeating(base::BindOnce(
&RegisterServiceWorkerCallback, &called, &sw_registration_id_)));
base::RunLoop().RunUntilIdle();

Powered by Google App Engine
This is Rietveld 408576698