Index: examples/ui/noodles/noodles_app.cc |
diff --git a/examples/ui/noodles/noodles_app.cc b/examples/ui/noodles/noodles_app.cc |
index c790822677a2e46093334f6cfbe0725d1c442f39..1b4034aa1de9f1d44c4a4773a9617d55215228a9 100644 |
--- a/examples/ui/noodles/noodles_app.cc |
+++ b/examples/ui/noodles/noodles_app.cc |
@@ -5,6 +5,7 @@ |
#include "examples/ui/noodles/noodles_app.h" |
#include "examples/ui/noodles/noodles_view.h" |
+#include "mojo/public/cpp/application/connect.h" |
namespace examples { |
@@ -17,7 +18,8 @@ void NoodlesApp::CreateView( |
mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request, |
mojo::InterfaceRequest<mojo::ServiceProvider> services, |
mojo::InterfaceHandle<mojo::ServiceProvider> exposed_services) { |
- new NoodlesView(app_impl(), view_owner_request.Pass()); |
+ new NoodlesView(mojo::CreateApplicationConnector(app_impl()->shell()), |
+ view_owner_request.Pass()); |
} |
} // namespace examples |