Index: mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc |
diff --git a/mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc b/mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc |
index 860beb57c3b8982f2b90e0151fe028722e731789..cc04f04e61abfc293c573b8da05681f0e4a01c6a 100644 |
--- a/mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc |
+++ b/mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc |
@@ -199,8 +199,9 @@ void ViewManagerClientImpl::Embed( |
Id view_id, |
ServiceProviderPtr service_provider) { |
DCHECK(connected_); |
- service_->Embed(url, view_id, service_provider.Pass(), |
- ActionCompletedCallback()); |
+ service_->Embed(url, view_id, |
+ MakeRequest<ServiceProvider>(service_provider.PassMessagePipe()), |
+ ActionCompletedCallback()); |
} |
void ViewManagerClientImpl::AddView(View* view) { |