Index: content/browser/service_worker/service_worker_job_unittest.cc |
diff --git a/content/browser/service_worker/service_worker_job_unittest.cc b/content/browser/service_worker/service_worker_job_unittest.cc |
index ca7aea2857325ccbbf59af4b24cbd76eff317ef4..c8fed4d139638e70b1098215fbd5f7b4dcbdd7a6 100644 |
--- a/content/browser/service_worker/service_worker_job_unittest.cc |
+++ b/content/browser/service_worker/service_worker_job_unittest.cc |
@@ -173,6 +173,7 @@ class ServiceWorkerJobTest : public testing::Test { |
TestBrowserThreadBundle browser_thread_bundle_; |
std::unique_ptr<EmbeddedWorkerTestHelper> helper_; |
+ std::vector<ServiceWorkerRemoteProviderEndpoint> remote_endpoints_; |
}; |
scoped_refptr<ServiceWorkerRegistration> ServiceWorkerJobTest::RunRegisterJob( |
@@ -219,9 +220,11 @@ ServiceWorkerJobTest::FindRegistrationForPattern( |
std::unique_ptr<ServiceWorkerProviderHost> |
ServiceWorkerJobTest::CreateControllee() { |
+ remote_endpoints_.emplace_back(); |
std::unique_ptr<ServiceWorkerProviderHost> host = CreateProviderHostForWindow( |
33 /* dummy render process id */, 1 /* dummy provider_id */, |
- true /* is_parent_frame_secure */, helper_->context()->AsWeakPtr()); |
+ true /* is_parent_frame_secure */, helper_->context()->AsWeakPtr(), |
+ &remote_endpoints_.back()); |
return host; |
} |