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

Unified Diff: services/ui/view_manager/view_stub.cc

Issue 1682113003: Mojo C++ bindings: Generate InterfaceHandle<> instead of InterfacePtr<>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebase ontop of master, address trung's comments Created 4 years, 10 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 | « services/ui/view_manager/view_stub.h ('k') | services/ui/view_manager/view_tree_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/view_manager/view_stub.cc
diff --git a/services/ui/view_manager/view_stub.cc b/services/ui/view_manager/view_stub.cc
index 8fd5eae8f402e58e006f63e97f693bcdffb063a2..f68dc19bde9489ba67e2314d82b58da09119f1ee 100644
--- a/services/ui/view_manager/view_stub.cc
+++ b/services/ui/view_manager/view_stub.cc
@@ -4,6 +4,8 @@
#include "services/ui/view_manager/view_stub.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/logging.h"
#include "services/ui/view_manager/view_registry.h"
@@ -12,8 +14,10 @@
namespace view_manager {
-ViewStub::ViewStub(ViewRegistry* registry, mojo::ui::ViewOwnerPtr owner)
- : registry_(registry), owner_(owner.Pass()) {
+ViewStub::ViewStub(ViewRegistry* registry,
+ mojo::InterfaceHandle<mojo::ui::ViewOwner> owner)
+ : registry_(registry),
+ owner_(mojo::ui::ViewOwnerPtr::Create(std::move(owner))) {
DCHECK(registry_);
DCHECK(owner_);
« no previous file with comments | « services/ui/view_manager/view_stub.h ('k') | services/ui/view_manager/view_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698