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

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

Issue 2475543003: Introduce the image_decoder service (Closed)
Patch Set: . Created 4 years, 1 month 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/connector_impl.cc
diff --git a/services/service_manager/public/cpp/lib/connector_impl.cc b/services/service_manager/public/cpp/lib/connector_impl.cc
index d4d4ec781bd93d65ce00e6f39faf158f1ea5ee86..e704037b197ffea6df71fccad9e8e0193efdd47c 100644
--- a/services/service_manager/public/cpp/lib/connector_impl.cc
+++ b/services/service_manager/public/cpp/lib/connector_impl.cc
@@ -94,6 +94,12 @@ std::unique_ptr<Connector> ConnectorImpl::Clone() {
return base::MakeUnique<ConnectorImpl>(connector.PassInterface());
}
+void ConnectorImpl::BindRequest(mojom::ConnectorRequest request) {
+ if (!BindIfNecessary())
+ return;
+ connector_->Clone(std::move(request));
+}
+
bool ConnectorImpl::BindIfNecessary() {
// Bind this object to the current thread the first time it is used to
// connect.
« no previous file with comments | « services/service_manager/public/cpp/lib/connector_impl.h ('k') | services/service_manager/public/service_manifest.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698