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

Unified Diff: content/renderer/shared_worker_repository.cc

Issue 2604733002: SharedWorker: Make shared workers keyed by a pair of url and name (Closed)
Patch Set: clean up Created 4 years 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/renderer/shared_worker_repository.cc
diff --git a/content/renderer/shared_worker_repository.cc b/content/renderer/shared_worker_repository.cc
index 96bea06fa5908ab341b35782bd78c0f47f958c95..01903b1388fb2ab06d6b146585e03abf1be5e4eb 100644
--- a/content/renderer/shared_worker_repository.cc
+++ b/content/renderer/shared_worker_repository.cc
@@ -42,8 +42,6 @@ SharedWorkerRepository::createSharedWorkerConnector(
ViewHostMsg_CreateWorker_Reply reply;
Send(new ViewHostMsg_CreateWorker(params, &reply));
*error = reply.error;
- if (reply.route_id == MSG_ROUTING_NONE)
- return nullptr;
documents_with_workers_.insert(document_id);
return base::MakeUnique<WebSharedWorkerProxy>(
ChildThreadImpl::current()->GetRouter(), reply.route_id);
« no previous file with comments | « content/browser/shared_worker/shared_worker_service_impl_unittest.cc ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698