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

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: 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
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 edab7ace0d688b1f4cfbe9821b8036231336b3aa..c24704d62e525b774942b99c261ce4f55a25dea4 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"
@@ -131,7 +132,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()));
}
@@ -182,7 +183,7 @@ class MotermExampleApp : public mojo::ApplicationDelegate,
// |ViewProvider|:
void CreateView(mojo::InterfaceRequest<mojo::ServiceProvider> services,
- mojo::ServiceProviderPtr exposed_services,
+ mojo::InterfaceHandle<mojo::ServiceProvider> exposed_services,
const CreateViewCallback& callback) override {
new MotermExampleAppView(application_impl_->shell(), callback);
}

Powered by Google App Engine
This is Rietveld 408576698