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

Unified Diff: examples/moterm_example_app/moterm_example_app.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 | « examples/indirect_service/indirect_service_demo.cc ('k') | examples/native_run_app/native_run_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/moterm_example_app/moterm_example_app.cc
diff --git a/examples/moterm_example_app/moterm_example_app.cc b/examples/moterm_example_app/moterm_example_app.cc
index e6364fc20310b716461bba8942ebd61bb64f1562..8e4c32d7c6a3eeedde9cdfa67bbefad4198942a7 100644
--- a/examples/moterm_example_app/moterm_example_app.cc
+++ b/examples/moterm_example_app/moterm_example_app.cc
@@ -8,6 +8,7 @@
#include <string.h>
#include <algorithm>
+#include <utility>
#include "base/bind.h"
#include "base/macros.h"
@@ -132,7 +133,7 @@ class MotermExampleAppView {
mojo::terminal::TerminalClientPtr dest_terminal_client;
mojo::ConnectToService(dest_sp.get(), &dest_terminal_client);
moterm_terminal_->ConnectToClient(
- dest_terminal_client.Pass(), true,
+ std::move(dest_terminal_client), true,
base::Bind(&MotermExampleAppView::OnDestinationDone,
weak_factory_.GetWeakPtr()));
}
@@ -165,7 +166,7 @@ class MotermExampleApp : public mojo::ui::ViewProviderApp {
const std::string& connection_url,
mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request,
mojo::InterfaceRequest<mojo::ServiceProvider> services,
- mojo::ServiceProviderPtr exposed_services) override {
+ mojo::InterfaceHandle<mojo::ServiceProvider> exposed_services) override {
new MotermExampleAppView(app_impl()->shell(), view_owner_request.Pass());
}
« no previous file with comments | « examples/indirect_service/indirect_service_demo.cc ('k') | examples/native_run_app/native_run_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698