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

Unified Diff: content/browser/background_fetch/background_fetch_test_base.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_fetch/background_fetch_test_base.cc
diff --git a/content/browser/background_fetch/background_fetch_test_base.cc b/content/browser/background_fetch/background_fetch_test_base.cc
index 9314f19e96e0d83b7c51618bc1d88b115e0d4e58..a264fc1fab05de10bde550e3289c06e7d8655398 100644
--- a/content/browser/background_fetch/background_fetch_test_base.cc
+++ b/content/browser/background_fetch/background_fetch_test_base.cc
@@ -240,7 +240,8 @@ bool BackgroundFetchTestBase::CreateRegistrationId(
{
base::RunLoop run_loop;
embedded_worker_test_helper_.context()->RegisterServiceWorker(
- origin_.GetURL(), script_url, nullptr /* provider_host */,
+ script_url, ServiceWorkerRegistrationOptions(origin_.GetURL()),
+ nullptr /* provider_host */,
base::Bind(&DidRegisterServiceWorker, &service_worker_registration_id,
run_loop.QuitClosure()));

Powered by Google App Engine
This is Rietveld 408576698