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

Unified Diff: apps/moterm/moterm_view.cc

Issue 1976063002: More work on ServiceProviderImpl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: sigh 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 | « apps/moterm/moterm_view.h ('k') | mojo/public/cpp/application/service_provider_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/moterm/moterm_view.cc
diff --git a/apps/moterm/moterm_view.cc b/apps/moterm/moterm_view.cc
index 413d486001b92ae81190c87adb247a16f81d2b63..e9f942f9bfbce694a47b699ea1a9b374f3a4a771 100644
--- a/apps/moterm/moterm_view.cc
+++ b/apps/moterm/moterm_view.cc
@@ -58,7 +58,11 @@ MotermView::MotermView(
// connection context argument.
service_provider_impl_.Bind(mojo::ConnectionContext(),
service_provider_request.Pass());
- service_provider_impl_.AddService<mojo::terminal::Terminal>(this);
+ service_provider_impl_.AddService<mojo::terminal::Terminal>([this](
+ const mojo::ConnectionContext& connection_context,
+ mojo::InterfaceRequest<mojo::terminal::Terminal> terminal_request) {
+ terminal_bindings_.AddBinding(this, terminal_request.Pass());
+ });
}
regular_typeface_ = skia::AdoptRef(SkTypeface::CreateFromStream(
@@ -133,12 +137,6 @@ void MotermView::OnDestroyed() {
}
}
-void MotermView::Create(
- const mojo::ConnectionContext& connection_context,
- mojo::InterfaceRequest<mojo::terminal::Terminal> request) {
- terminal_bindings_.AddBinding(this, request.Pass());
-}
-
void MotermView::Connect(
mojo::InterfaceRequest<mojo::files::File> terminal_file,
bool force,
« no previous file with comments | « apps/moterm/moterm_view.h ('k') | mojo/public/cpp/application/service_provider_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698