Index: content/browser/service_worker/service_worker_write_to_cache_job_unittest.cc |
diff --git a/content/browser/service_worker/service_worker_write_to_cache_job_unittest.cc b/content/browser/service_worker/service_worker_write_to_cache_job_unittest.cc |
index cc8de0f4a815785eb78fbc2d962077670b032f88..b63291fd3780705d48e39f9c36bd47e0e5b1ff8d 100644 |
--- a/content/browser/service_worker/service_worker_write_to_cache_job_unittest.cc |
+++ b/content/browser/service_worker/service_worker_write_to_cache_job_unittest.cc |
@@ -280,9 +280,11 @@ class ServiceWorkerWriteToCacheJobTest : public testing::Test { |
int provider_id, |
const scoped_refptr<ServiceWorkerVersion>& version) { |
std::unique_ptr<ServiceWorkerProviderHost> host( |
- new ServiceWorkerProviderHost(process_id, MSG_ROUTING_NONE, provider_id, |
- SERVICE_WORKER_PROVIDER_FOR_WORKER, |
- context()->AsWeakPtr(), nullptr)); |
+ new ServiceWorkerProviderHost( |
+ process_id, MSG_ROUTING_NONE, provider_id, |
+ SERVICE_WORKER_PROVIDER_FOR_WORKER, |
+ ServiceWorkerProviderHost::FrameSecurityLevel::SECURE, |
+ context()->AsWeakPtr(), nullptr)); |
base::WeakPtr<ServiceWorkerProviderHost> provider_host = host->AsWeakPtr(); |
context()->AddProviderHost(std::move(host)); |
provider_host->running_hosted_version_ = version; |