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

Unified Diff: content/browser/service_worker/service_worker_context_request_handler_unittest.cc

Issue 2958753003: Revert "Create ServiceWorkerProviderHost before starting worker" (Closed)
Patch Set: 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/service_worker/service_worker_context_request_handler_unittest.cc
diff --git a/content/browser/service_worker/service_worker_context_request_handler_unittest.cc b/content/browser/service_worker/service_worker_context_request_handler_unittest.cc
index c2a599a58e89224009f411629be9dcf378459b71..5f08d2307fe6daae715bd05b42e60ce40cd4b803 100644
--- a/content/browser/service_worker/service_worker_context_request_handler_unittest.cc
+++ b/content/browser/service_worker/service_worker_context_request_handler_unittest.cc
@@ -90,11 +90,12 @@ class ServiceWorkerContextRequestHandlerTest : public testing::Test {
void SetUpProvider() {
std::unique_ptr<ServiceWorkerProviderHost> host =
CreateProviderHostForServiceWorkerContext(
- helper_->mock_render_process_id(),
- true /* is_parent_frame_secure */, version_.get(),
- context()->AsWeakPtr(), &remote_endpoint_);
+ helper_->mock_render_process_id(), 1 /* provider_id */,
+ true /* is_parent_frame_secure */, context()->AsWeakPtr(),
+ &remote_endpoint_);
provider_host_ = host->AsWeakPtr();
context()->AddProviderHost(std::move(host));
+ provider_host_->running_hosted_version_ = version_;
}
std::unique_ptr<net::URLRequest> CreateRequest(const GURL& url) {

Powered by Google App Engine
This is Rietveld 408576698