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

Unified Diff: content/browser/background_sync/background_sync_manager_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_manager_unittest.cc
diff --git a/content/browser/background_sync/background_sync_manager_unittest.cc b/content/browser/background_sync/background_sync_manager_unittest.cc
index f668437a5f564e504329fbd9ef34776065fa85eb..f65652b57e515f3248cdef5729ced116c6398c5e 100644
--- a/content/browser/background_sync/background_sync_manager_unittest.cc
+++ b/content/browser/background_sync/background_sync_manager_unittest.cc
@@ -158,13 +158,15 @@ class BackgroundSyncManagerTest : public testing::Test {
bool called_1 = false;
bool called_2 = false;
helper_->context()->RegisterServiceWorker(
- GURL(kPattern1), GURL(kScript1), NULL,
+ GURL(kScript1), ServiceWorkerRegistrationOptions(GURL(kPattern1)),
+ nullptr,
base::AdaptCallbackForRepeating(
base::BindOnce(&RegisterServiceWorkerCallback, &called_1,
&sw_registration_id_1_)));
helper_->context()->RegisterServiceWorker(
- GURL(kPattern2), GURL(kScript2), NULL,
+ GURL(kScript2), ServiceWorkerRegistrationOptions(GURL(kPattern2)),
+ nullptr,
base::AdaptCallbackForRepeating(
base::BindOnce(&RegisterServiceWorkerCallback, &called_2,
&sw_registration_id_2_)));

Powered by Google App Engine
This is Rietveld 408576698