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

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

Issue 2592623002: mojo:: Introduce InterfaceRequest ctor that takes in InterfacePtr* (Closed)
Patch Set: Minor fix 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: 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 a00b288a2370898e5bae9db3ec8c7bacaaf4d92e..9d66a1cfd358d60e924525a7e55bda5d2807b77d 100644
--- a/services/service_manager/public/cpp/lib/connector_impl.cc
+++ b/services/service_manager/public/cpp/lib/connector_impl.cc
@@ -49,8 +49,7 @@ std::unique_ptr<Connection> ConnectorImpl::Connect(ConnectParams* params) {
DCHECK(params);
mojom::InterfaceProviderPtr remote_interfaces;
- mojom::InterfaceProviderRequest remote_request =
- MakeRequest(&remote_interfaces);
+ mojom::InterfaceProviderRequest remote_request(&remote_interfaces);
std::unique_ptr<internal::ConnectionImpl> connection(
new internal::ConnectionImpl(params->target(),
Connection::State::PENDING));
@@ -90,7 +89,7 @@ std::unique_ptr<Connector> ConnectorImpl::Clone() {
return nullptr;
mojom::ConnectorPtr connector;
- mojom::ConnectorRequest request = MakeRequest(&connector);
+ mojom::ConnectorRequest request(&connector);
connector_->Clone(std::move(request));
return base::MakeUnique<ConnectorImpl>(connector.PassInterface());
}

Powered by Google App Engine
This is Rietveld 408576698