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

Unified Diff: services/shell/tests/connect/connect_test_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/standalone/context.cc ('k') | services/shell/tests/connect/connect_test_class_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/tests/connect/connect_test_app.cc
diff --git a/services/shell/tests/connect/connect_test_app.cc b/services/shell/tests/connect/connect_test_app.cc
index 48fb53ada454fbcd3b4f1807c86ae57bf85e9099..73aef20c2dc314e00bc76d3f1a28c8562dca02a5 100644
--- a/services/shell/tests/connect/connect_test_app.cc
+++ b/services/shell/tests/connect/connect_test_app.cc
@@ -14,7 +14,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"
@@ -37,7 +37,7 @@ void ReceiveString(std::string* string,
using GetTitleCallback = test::mojom::ConnectTestService::GetTitleCallback;
-class ConnectTestApp : public ShellClient,
+class ConnectTestApp : public Service,
public InterfaceFactory<test::mojom::ConnectTestService>,
public InterfaceFactory<test::mojom::StandaloneApp>,
public InterfaceFactory<test::mojom::BlockedInterface>,
@@ -51,9 +51,9 @@ class ConnectTestApp : public ShellClient,
~ConnectTestApp() 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;
id_ = id;
@@ -64,7 +64,7 @@ class ConnectTestApp : public ShellClient,
base::Bind(&ConnectTestApp::OnConnectionError,
base::Unretained(this)));
}
- bool AcceptConnection(Connection* connection) override {
+ bool OnConnect(Connection* connection) override {
connection->AddInterface<test::mojom::ConnectTestService>(this);
connection->AddInterface<test::mojom::StandaloneApp>(this);
connection->AddInterface<test::mojom::BlockedInterface>(this);
« no previous file with comments | « services/shell/standalone/context.cc ('k') | services/shell/tests/connect/connect_test_class_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698