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

Unified Diff: content/browser/payments/payment_app_content_unittest_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/payments/payment_app_content_unittest_base.cc
diff --git a/content/browser/payments/payment_app_content_unittest_base.cc b/content/browser/payments/payment_app_content_unittest_base.cc
index 37294f68bfdab0aba24182671853e164a7c806f9..aa239a1c55652a9f73f2296084aa4a4fcc464fe2 100644
--- a/content/browser/payments/payment_app_content_unittest_base.cc
+++ b/content/browser/payments/payment_app_content_unittest_base.cc
@@ -112,7 +112,7 @@ PaymentManager* PaymentAppContentUnitTestBase::CreatePaymentManager(
// Register service worker for payment manager.
bool called = false;
worker_helper_->context()->RegisterServiceWorker(
- scope_url, sw_script_url, nullptr,
+ sw_script_url, ServiceWorkerRegistrationOptions(scope_url), nullptr,
base::Bind(&RegisterServiceWorkerCallback, &called));
base::RunLoop().RunUntilIdle();
EXPECT_TRUE(called);

Powered by Google App Engine
This is Rietveld 408576698