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

Unified Diff: services/service_manager/public/cpp/lib/service_context.cc

Issue 2706383002: DO NOT SUBMIT: Show silent service manager failure (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
Index: services/service_manager/public/cpp/lib/service_context.cc
diff --git a/services/service_manager/public/cpp/lib/service_context.cc b/services/service_manager/public/cpp/lib/service_context.cc
index 1726027b726df7bb29f7c5cd7356c456f16a76ad..6f1b35971c1fd7b81b619924994acc94c8861ddf 100644
--- a/services/service_manager/public/cpp/lib/service_context.cc
+++ b/services/service_manager/public/cpp/lib/service_context.cc
@@ -34,6 +34,7 @@ ServiceContext::ServiceContext(
binding_(this, std::move(request)),
connector_(std::move(connector)),
weak_factory_(this) {
+ LOG(INFO) << "ServiceContext::ServiceContext";
DCHECK(binding_.is_bound());
binding_.set_connection_error_handler(
base::Bind(&ServiceContext::OnConnectionError, base::Unretained(this)));
@@ -80,6 +81,7 @@ void ServiceContext::DestroyService() {
void ServiceContext::OnStart(const ServiceInfo& info,
const OnStartCallback& callback) {
+ LOG(INFO) << "ServiceContext::OnStart: " << info.identity.name();
local_info_ = info;
callback.Run(
std::move(pending_connector_request_),
@@ -93,6 +95,7 @@ void ServiceContext::OnConnect(
const ServiceInfo& source_info,
mojom::InterfaceProviderRequest interfaces,
const OnConnectCallback& callback) {
+ LOG(INFO) << "ServiceContext::OnConnect";
InterfaceProviderSpec source_spec, target_spec;
GetInterfaceProviderSpec(mojom::kServiceManager_ConnectorSpec,
local_info_.interface_provider_specs, &target_spec);
@@ -110,6 +113,7 @@ void ServiceContext::OnBindInterface(
const std::string& interface_name,
mojo::ScopedMessagePipeHandle interface_pipe,
const OnBindInterfaceCallback& callback) {
+ LOG(INFO) << "ServiceContext::OnBindInterface: " << interface_name;
// Acknowledge the request regardless of whether it's accepted.
callback.Run();
« no previous file with comments | « services/service_manager/public/cpp/lib/connector_impl.cc ('k') | services/service_manager/service_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698