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

Unified Diff: mojo/examples/dbus_echo/dbus_echo_app.cc

Issue 503363004: Remove redundant echo.mojom, verify non-nullables in echo_service.mojom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « no previous file | mojo/examples/dbus_echo/dbus_echo_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/dbus_echo/dbus_echo_app.cc
diff --git a/mojo/examples/dbus_echo/dbus_echo_app.cc b/mojo/examples/dbus_echo/dbus_echo_app.cc
index 8dbfcde31017b3e1150c628b64361d247743e4b5..7a76f71b101176a85c1ddf9f7cd04145fea8b6e5 100644
--- a/mojo/examples/dbus_echo/dbus_echo_app.cc
+++ b/mojo/examples/dbus_echo/dbus_echo_app.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/logging.h"
+#include "mojo/examples/echo/echo_service.mojom.h"
#include "mojo/public/c/system/main.h"
#include "mojo/public/cpp/application/application_delegate.h"
#include "mojo/public/cpp/application/application_impl.h"
@@ -14,7 +15,6 @@
#include "mojo/public/cpp/environment/environment.h"
#include "mojo/public/cpp/system/core.h"
#include "mojo/public/cpp/system/macros.h"
-#include "mojo/services/dbus_echo/echo.mojom.h"
namespace mojo {
namespace examples {
@@ -28,7 +28,7 @@ class DBusEchoApp : public ApplicationDelegate {
app->ConnectToService(
"dbus:org.chromium.EchoService/org/chromium/MojoImpl", &echo_service_);
- echo_service_->Echo(
+ echo_service_->EchoString(
String::From("who"),
base::Bind(&DBusEchoApp::OnEcho, base::Unretained(this)));
}
« no previous file with comments | « no previous file | mojo/examples/dbus_echo/dbus_echo_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698