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

Unified Diff: mojo/services/view_manager/public/cpp/lib/view_manager_client_impl.cc

Issue 1118843003: Remove some InterfacePtr<> methods which directly deal with message pipe handles. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 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
Index: mojo/services/view_manager/public/cpp/lib/view_manager_client_impl.cc
diff --git a/mojo/services/view_manager/public/cpp/lib/view_manager_client_impl.cc b/mojo/services/view_manager/public/cpp/lib/view_manager_client_impl.cc
index 77dc293fe019b216da3b6d25a101c9fa1bedeac5..c4aea7013c8bc57503c8db9d2c3f325dee054bc0 100644
--- a/mojo/services/view_manager/public/cpp/lib/view_manager_client_impl.cc
+++ b/mojo/services/view_manager/public/cpp/lib/view_manager_client_impl.cc
@@ -291,7 +291,8 @@ void ViewManagerClientImpl::OnEmbed(
root_ = AddViewToViewManager(this, nullptr, root_data);
root_->AddObserver(new RootObserver(root_));
- window_manager_.Bind(window_manager_pipe.Pass());
+ window_manager_.Bind(
+ InterfacePtrInfo<WindowManager>(window_manager_pipe.Pass(), 0u));
WindowManagerObserverPtr observer;
wm_observer_binding_.Bind(GetProxy(&observer));
// binding to |this| is safe here as |window_manager_| is bound to our
« no previous file with comments | « mojo/public/cpp/bindings/tests/validation_unittest.cc ('k') | services/dart/content_handler_app_service_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698