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

Unified Diff: content/common/service_manager/service_manager_connection_impl.cc

Issue 2716513002: Add DCHECK when service handler is missing (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/service_manager/service_manager_connection_impl.cc
diff --git a/content/common/service_manager/service_manager_connection_impl.cc b/content/common/service_manager/service_manager_connection_impl.cc
index 83a4d1124d94734a7ea3d8644d879ef836078503..212ec813940655443904302f87647e01d9e0680e 100644
--- a/content/common/service_manager/service_manager_connection_impl.cc
+++ b/content/common/service_manager/service_manager_connection_impl.cc
@@ -510,6 +510,8 @@ void ServiceManagerConnectionImpl::CreateService(
service_manager::mojom::ServiceRequest request,
const std::string& name) {
auto it = request_handlers_.find(name);
+ DCHECK(it != request_handlers_.end())
+ << "Can't create service " << name << ". No handler found.";
if (it != request_handlers_.end())
it->second.Run(std::move(request));
}
@@ -540,4 +542,3 @@ void ServiceManagerConnectionImpl::GetInterface(
}
} // namespace content
-
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698