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

Unified Diff: examples/ui/noodles/noodles_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/jank/jank.cc ('k') | examples/ui/noodles/noodles_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « examples/ui/jank/jank.cc ('k') | examples/ui/noodles/noodles_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698