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

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

Issue 304593002: Revert 272983 "Change Shell / ShellClient to ServiceProvider" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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
Index: trunk/src/mojo/examples/dbus_echo/dbus_echo_app.cc
===================================================================
--- trunk/src/mojo/examples/dbus_echo/dbus_echo_app.cc (revision 272983)
+++ trunk/src/mojo/examples/dbus_echo/dbus_echo_app.cc (working copy)
@@ -7,13 +7,13 @@
#include "base/bind.h"
#include "base/logging.h"
-#include "mojo/public/cpp/application/application.h"
#include "mojo/public/cpp/bindings/allocation_scope.h"
#include "mojo/public/cpp/environment/environment.h"
+#include "mojo/public/cpp/shell/application.h"
#include "mojo/public/cpp/system/core.h"
#include "mojo/public/cpp/system/macros.h"
#include "mojo/public/cpp/utility/run_loop.h"
-#include "mojo/public/interfaces/service_provider/service_provider.mojom.h"
+#include "mojo/public/interfaces/shell/shell.mojom.h"
#include "mojo/services/dbus_echo/echo.mojom.h"
#if defined(WIN32)
@@ -31,8 +31,7 @@
class DBusEchoApp : public Application {
public:
- explicit DBusEchoApp(MojoHandle service_provider_handle)
- : Application(service_provider_handle) {
+ explicit DBusEchoApp(MojoHandle shell_handle) : Application(shell_handle) {
ConnectTo("dbus:org.chromium.EchoService/org/chromium/MojoImpl",
&echo_service_);
@@ -56,11 +55,11 @@
} // namespace mojo
extern "C" DBUS_ECHO_APP_EXPORT MojoResult CDECL MojoMain(
- MojoHandle service_provider_handle) {
+ MojoHandle shell_handle) {
mojo::Environment env;
mojo::RunLoop loop;
- mojo::examples::DBusEchoApp app(service_provider_handle);
+ mojo::examples::DBusEchoApp app(shell_handle);
loop.Run();
return MOJO_RESULT_OK;
}
« no previous file with comments | « trunk/src/mojo/examples/compositor_app/compositor_app.cc ('k') | trunk/src/mojo/examples/launcher/launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698