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

Unified Diff: services/shell/tests/shutdown/shutdown_service_app.cc

Issue 2118083002: ShellClient -> Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus2
Patch Set: . Created 4 years, 5 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 | « services/shell/tests/shutdown/shutdown_client_app.cc ('k') | services/shell/tests/util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/tests/shutdown/shutdown_service_app.cc
diff --git a/services/shell/tests/shutdown/shutdown_service_app.cc b/services/shell/tests/shutdown/shutdown_service_app.cc
index f49f794ed6a2c2caaecc997858f0b6dd19e8dd06..199bf9d8a02e0e4765a25e28c5acbea5f53f01ac 100644
--- a/services/shell/tests/shutdown/shutdown_service_app.cc
+++ b/services/shell/tests/shutdown/shutdown_service_app.cc
@@ -6,7 +6,7 @@
#include "mojo/public/c/system/main.h"
#include "mojo/public/cpp/bindings/binding_set.h"
#include "services/shell/public/cpp/application_runner.h"
-#include "services/shell/public/cpp/shell_client.h"
+#include "services/shell/public/cpp/service.h"
#include "services/shell/tests/shutdown/shutdown_unittest.mojom.h"
namespace shell {
@@ -15,7 +15,7 @@ namespace {
shell::ApplicationRunner* g_app = nullptr;
class ShutdownServiceApp
- : public ShellClient,
+ : public Service,
public InterfaceFactory<mojom::ShutdownTestService>,
public mojom::ShutdownTestService {
public:
@@ -23,10 +23,10 @@ class ShutdownServiceApp
~ShutdownServiceApp() override {}
private:
- // shell::ShellClient:
- void Initialize(Connector* connector, const Identity& identity,
- uint32_t id) override {}
- bool AcceptConnection(Connection* connection) override {
+ // shell::Service:
+ void OnStart(Connector* connector, const Identity& identity,
+ uint32_t id) override {}
+ bool OnConnect(Connection* connection) override {
connection->AddInterface<mojom::ShutdownTestService>(this);
return true;
}
« no previous file with comments | « services/shell/tests/shutdown/shutdown_client_app.cc ('k') | services/shell/tests/util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698