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

Unified Diff: content/browser/background_sync/background_sync_service_impl_unittest.cc

Issue 2771823002: Implement updateViaCache flag and no-cache by default for main service worker scripts
Patch Set: fix tests Created 3 years, 9 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 197cf17df63c40b97b0962d0f0a06167cfeec01c..b1a56c6c5d7e2ed7e9f030af622a7acd3854fc8f 100644
--- a/content/browser/background_sync/background_sync_service_impl_unittest.cc
+++ b/content/browser/background_sync/background_sync_service_impl_unittest.cc
@@ -162,7 +162,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::Bind(&RegisterServiceWorkerCallback, &called,
&sw_registration_id_));
base::RunLoop().RunUntilIdle();

Powered by Google App Engine
This is Rietveld 408576698