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

Unified Diff: examples/ui/spinning_cube/spinning_cube_app.cc

Issue 1991853003: Make BaseView et al. take an ApplicationConnector instead of an ApplicationImpl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh Created 4 years, 7 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 | « examples/ui/shapes/shapes_view.cc ('k') | examples/ui/spinning_cube/spinning_cube_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/ui/spinning_cube/spinning_cube_app.cc
diff --git a/examples/ui/spinning_cube/spinning_cube_app.cc b/examples/ui/spinning_cube/spinning_cube_app.cc
index 2fbe9d43330a4fcfaaf0f7de8a1865e2537dee79..61596415bd5f8edad5bb28bb5764d293f4dd4c53 100644
--- a/examples/ui/spinning_cube/spinning_cube_app.cc
+++ b/examples/ui/spinning_cube/spinning_cube_app.cc
@@ -5,6 +5,7 @@
#include "examples/ui/spinning_cube/spinning_cube_app.h"
#include "examples/ui/spinning_cube/spinning_cube_view.h"
+#include "mojo/public/cpp/application/connect.h"
namespace examples {
@@ -17,7 +18,8 @@ void SpinningCubeApp::CreateView(
mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request,
mojo::InterfaceRequest<mojo::ServiceProvider> services,
mojo::InterfaceHandle<mojo::ServiceProvider> exposed_services) {
- new SpinningCubeView(app_impl(), view_owner_request.Pass());
+ new SpinningCubeView(mojo::CreateApplicationConnector(app_impl()->shell()),
+ view_owner_request.Pass());
}
} // namespace examples
« no previous file with comments | « examples/ui/shapes/shapes_view.cc ('k') | examples/ui/spinning_cube/spinning_cube_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698