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

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: 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/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 72a64581ae339e33fe9f4b82ee839b788b6a7e8f..75a34791ba4e292616cfa94f5914a151ade6c421 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::Bind(&RegisterServiceWorkerCallback, &called,
&sw_registration_id_));
base::RunLoop().RunUntilIdle();

Powered by Google App Engine
This is Rietveld 408576698