Index: content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc |
diff --git a/content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc b/content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc |
index fa176b910e91d5d41ece8bf4bd81f3f6dadb3857..5c4be2fffdc687ff0f6a7c3663b98abce8762e20 100644 |
--- a/content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc |
+++ b/content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc |
@@ -110,10 +110,12 @@ class ServiceWorkerControlleeRequestHandlerTest : public testing::Test { |
EmbeddedWorkerTestHelper::CreateHttpResponseInfo()); |
// An empty host. |
+ remote_endpoints_.emplace_back(); |
std::unique_ptr<ServiceWorkerProviderHost> host = |
CreateProviderHostForWindow( |
helper_->mock_render_process_id(), kMockProviderId, |
- true /* is_parent_frame_secure */, helper_->context()->AsWeakPtr()); |
+ true /* is_parent_frame_secure */, helper_->context()->AsWeakPtr(), |
+ &remote_endpoints_.back()); |
provider_host_ = host->AsWeakPtr(); |
context()->AddProviderHost(std::move(host)); |
@@ -140,6 +142,7 @@ class ServiceWorkerControlleeRequestHandlerTest : public testing::Test { |
MockResourceContext mock_resource_context_; |
GURL scope_; |
GURL script_url_; |
+ std::vector<ServiceWorkerRemoteProviderEndpoint> remote_endpoints_; |
}; |
class ServiceWorkerTestContentBrowserClient : public TestContentBrowserClient { |