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

Unified Diff: services/shell/tests/shutdown/shutdown_client_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/shell/target.cc ('k') | services/shell/tests/shutdown/shutdown_service_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/tests/shutdown/shutdown_client_app.cc
diff --git a/services/shell/tests/shutdown/shutdown_client_app.cc b/services/shell/tests/shutdown/shutdown_client_app.cc
index 6c90396875887496eca348e845d81efb7ef0d8e2..a7f630f5d8c9b332f559f3f760234fb65e912fb5 100644
--- a/services/shell/tests/shutdown/shutdown_client_app.cc
+++ b/services/shell/tests/shutdown/shutdown_client_app.cc
@@ -8,13 +8,13 @@
#include "services/shell/public/cpp/application_runner.h"
#include "services/shell/public/cpp/connector.h"
#include "services/shell/public/cpp/interface_factory.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 {
class ShutdownClientApp
- : public ShellClient,
+ : public Service,
public InterfaceFactory<mojom::ShutdownTestClientController>,
public mojom::ShutdownTestClientController,
public mojom::ShutdownTestClient {
@@ -23,13 +23,13 @@ class ShutdownClientApp
~ShutdownClientApp() override {}
private:
- // shell::ShellClient:
- void Initialize(Connector* connector, const Identity& identity,
- uint32_t id) override {
+ // shell::Service:
+ void OnStart(Connector* connector, const Identity& identity,
+ uint32_t id) override {
connector_ = connector;
}
- bool AcceptConnection(Connection* connection) override {
+ bool OnConnect(Connection* connection) override {
connection->AddInterface<mojom::ShutdownTestClientController>(this);
return true;
}
« no previous file with comments | « services/shell/tests/shell/target.cc ('k') | services/shell/tests/shutdown/shutdown_service_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698