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

Unified Diff: examples/ui/tile/tile_view.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/tile/tile_view.h ('k') | mojo/public/cpp/application/connect.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/ui/tile/tile_view.cc
diff --git a/examples/ui/tile/tile_view.cc b/examples/ui/tile/tile_view.cc
index 4a699860b01c12847b66ee986a8b91f5902039c5..b09815ef5f28be021a081a25e2a5c27b54c291a7 100644
--- a/examples/ui/tile/tile_view.cc
+++ b/examples/ui/tile/tile_view.cc
@@ -27,10 +27,11 @@ TileParams::TileParams() {}
TileParams::~TileParams() {}
TileView::TileView(
- mojo::ApplicationImpl* app_impl,
+ mojo::InterfaceHandle<mojo::ApplicationConnector> app_connector,
mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request,
const TileParams& params)
- : BaseView(app_impl, view_owner_request.Pass(), "Tile"), params_(params) {
+ : BaseView(app_connector.Pass(), view_owner_request.Pass(), "Tile"),
+ params_(params) {
ConnectViews();
}
@@ -41,7 +42,7 @@ void TileView::ConnectViews() {
for (const auto& url : params_.view_urls) {
// Start connecting to the view provider.
mojo::ui::ViewProviderPtr provider;
- mojo::ConnectToService(app_impl()->shell(), url, mojo::GetProxy(&provider));
+ mojo::ConnectToService(app_connector(), url, mojo::GetProxy(&provider));
LOG(INFO) << "Connecting to view: child_key=" << child_key
<< ", url=" << url;
« no previous file with comments | « examples/ui/tile/tile_view.h ('k') | mojo/public/cpp/application/connect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698