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

Unified Diff: sky/services/inspector/server.cc

Issue 858103002: Remove [Client=] annotation from ServiceProvider (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase for trybots (no code changes from ps2) Created 5 years, 11 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 | « sky/engine/v8_inspector/inspector_backend_mojo.cc ('k') | sky/tools/debugger/debugger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/services/inspector/server.cc
diff --git a/sky/services/inspector/server.cc b/sky/services/inspector/server.cc
index c5cd23e58bb2ed5e3ab8c4689dc524af0649262f..ac051e90e005e705899c4c6e54a2b9c34b62d560 100644
--- a/sky/services/inspector/server.cc
+++ b/sky/services/inspector/server.cc
@@ -39,12 +39,14 @@ class Server : public mojo::ApplicationDelegate,
mojo::ApplicationConnection* connection) override {
connection->AddService<InspectorFrontend>(this);
connection->AddService<InspectorServer>(this);
- // The application connecting to us may implement InspectorBackend,
- // attempt to establish a connection to find out. If it doesn't then this
- // pipe will close.
- InspectorBackendPtr backend;
- connection->ConnectToService(&backend);
- backends_.AddInterfacePtr(backend.Pass());
+ if (connection->GetServiceProvider()) {
+ // The application connecting to us may implement InspectorBackend,
+ // attempt to establish a connection to find out. If it doesn't then this
+ // pipe will close.
+ InspectorBackendPtr backend;
+ connection->ConnectToService(&backend);
+ backends_.AddInterfacePtr(backend.Pass());
+ }
return true;
}
« no previous file with comments | « sky/engine/v8_inspector/inspector_backend_mojo.cc ('k') | sky/tools/debugger/debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698