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

Unified Diff: services/shell/tests/connect/connect_test_class_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
Index: services/shell/tests/connect/connect_test_class_app.cc
diff --git a/services/shell/tests/connect/connect_test_class_app.cc b/services/shell/tests/connect/connect_test_class_app.cc
index 8aec2aac213f6686f26c1deb1f90426aa7648676..366b981db1cb27ad5b48f480d6896b1a7cf7041c 100644
--- a/services/shell/tests/connect/connect_test_class_app.cc
+++ b/services/shell/tests/connect/connect_test_class_app.cc
@@ -11,7 +11,7 @@
#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/public/interfaces/connector.mojom.h"
#include "services/shell/tests/connect/connect_test.mojom.h"
@@ -20,7 +20,7 @@ namespace shell {
using GetTitleCallback = test::mojom::ConnectTestService::GetTitleCallback;
class ConnectTestClassApp
- : public ShellClient,
+ : public Service,
public InterfaceFactory<test::mojom::ConnectTestService>,
public InterfaceFactory<test::mojom::ClassInterface>,
public test::mojom::ConnectTestService,
@@ -30,13 +30,13 @@ class ConnectTestClassApp
~ConnectTestClassApp() 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;
identity_ = identity;
}
- bool AcceptConnection(Connection* connection) override {
+ bool OnConnect(Connection* connection) override {
connection->AddInterface<test::mojom::ConnectTestService>(this);
connection->AddInterface<test::mojom::ClassInterface>(this);
inbound_connections_.insert(connection);
« no previous file with comments | « services/shell/tests/connect/connect_test_app.cc ('k') | services/shell/tests/connect/connect_test_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698