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

Unified Diff: services/shell/tests/lifecycle/parent.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/lifecycle/package.cc ('k') | services/shell/tests/shell/driver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/tests/lifecycle/parent.cc
diff --git a/services/shell/tests/lifecycle/parent.cc b/services/shell/tests/lifecycle/parent.cc
index 814a752057b794b4dd4bc99cbebbe3dfafb7895d..0d415816a82f3bb315fc5b8a4710cb3118a3cab3 100644
--- a/services/shell/tests/lifecycle/parent.cc
+++ b/services/shell/tests/lifecycle/parent.cc
@@ -11,7 +11,7 @@
#include "mojo/public/cpp/bindings/binding_set.h"
#include "services/shell/public/cpp/application_runner.h"
#include "services/shell/public/cpp/connector.h"
-#include "services/shell/public/cpp/shell_client.h"
+#include "services/shell/public/cpp/service.h"
#include "services/shell/tests/lifecycle/lifecycle_unittest.mojom.h"
namespace {
@@ -20,7 +20,7 @@ void QuitLoop(base::RunLoop* loop) {
loop->Quit();
}
-class Parent : public shell::ShellClient,
+class Parent : public shell::Service,
public shell::InterfaceFactory<shell::test::mojom::Parent>,
public shell::test::mojom::Parent {
public:
@@ -32,13 +32,13 @@ class Parent : public shell::ShellClient,
}
private:
- // ShellClient:
- void Initialize(shell::Connector* connector,
- const shell::Identity& identity,
- uint32_t id) override {
+ // Service:
+ void OnStart(shell::Connector* connector,
+ const shell::Identity& identity,
+ uint32_t id) override {
connector_ = connector;
}
- bool AcceptConnection(shell::Connection* connection) override {
+ bool OnConnect(shell::Connection* connection) override {
connection->AddInterface<shell::test::mojom::Parent>(this);
return true;
}
« no previous file with comments | « services/shell/tests/lifecycle/package.cc ('k') | services/shell/tests/shell/driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698