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

Unified Diff: services/shell/tests/lifecycle/package.cc

Issue 2215133002: Change signature of OnConnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup
Patch Set: . Created 4 years, 4 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/app_client.cc ('k') | services/shell/tests/lifecycle/parent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/tests/lifecycle/package.cc
diff --git a/services/shell/tests/lifecycle/package.cc b/services/shell/tests/lifecycle/package.cc
index f2fdf9c5db2609894b0d328d346577e3475f2538..1926faf11b6cdf8003fde4b82869ffe41ce1a0f4 100644
--- a/services/shell/tests/lifecycle/package.cc
+++ b/services/shell/tests/lifecycle/package.cc
@@ -38,8 +38,9 @@ class PackagedApp : public shell::Service,
private:
// shell::Service:
- bool OnConnect(shell::Connection* connection) override {
- connection->AddInterface<LifecycleControl>(this);
+ bool OnConnect(const shell::Identity& remote_identity,
+ shell::InterfaceRegistry* registry) override {
+ registry->AddInterface<LifecycleControl>(this);
return true;
}
@@ -99,9 +100,10 @@ class Package
private:
// shell::test::AppClient:
- bool OnConnect(shell::Connection* connection) override {
- connection->AddInterface<shell::mojom::ServiceFactory>(this);
- return app_client_.OnConnect(connection);
+ bool OnConnect(const shell::Identity& remote_identity,
+ shell::InterfaceRegistry* registry) override {
+ registry->AddInterface<shell::mojom::ServiceFactory>(this);
+ return app_client_.OnConnect(remote_identity, registry);
}
// shell::InterfaceFactory<shell::mojom::ServiceFactory>:
« no previous file with comments | « services/shell/tests/lifecycle/app_client.cc ('k') | services/shell/tests/lifecycle/parent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698