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

Unified Diff: services/shell/tests/connect/connect_test_package.cc

Issue 2182643003: Remove shell::Connection* parameter to InterfaceFactory<T>::Create() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/connect/connect_test_exe.cc ('k') | services/shell/tests/connect/connect_unittest.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_package.cc
diff --git a/services/shell/tests/connect/connect_test_package.cc b/services/shell/tests/connect/connect_test_package.cc
index 54d39ec8cca5d4f5a8d4af62d08401d3193a4bca..5d3c2256ff01e0a22030c77587b0c92d6235259f 100644
--- a/services/shell/tests/connect/connect_test_package.cc
+++ b/services/shell/tests/connect/connect_test_package.cc
@@ -91,19 +91,19 @@ class ProvidedService
}
// InterfaceFactory<test::mojom::ConnectTestService>:
- void Create(Connection* connection,
+ void Create(const Identity& remote_identity,
test::mojom::ConnectTestServiceRequest request) override {
bindings_.AddBinding(this, std::move(request));
}
// InterfaceFactory<test::mojom::BlockedInterface>:
- void Create(Connection* connection,
+ void Create(const Identity& remote_identity,
test::mojom::BlockedInterfaceRequest request) override {
blocked_bindings_.AddBinding(this, std::move(request));
}
// InterfaceFactory<test::mojom::UserIdTest>:
- void Create(Connection* connection,
+ void Create(const Identity& remote_identity,
test::mojom::UserIdTestRequest request) override {
user_id_test_bindings_.AddBinding(this, std::move(request));
}
@@ -189,13 +189,13 @@ class ConnectTestService
}
// InterfaceFactory<mojom::ServiceFactory>:
- void Create(Connection* connection,
+ void Create(const Identity& remote_identity,
mojom::ServiceFactoryRequest request) override {
service_factory_bindings_.AddBinding(this, std::move(request));
}
// InterfaceFactory<test::mojom::ConnectTestService>:
- void Create(Connection* connection,
+ void Create(const Identity& remote_identity,
test::mojom::ConnectTestServiceRequest request) override {
bindings_.AddBinding(this, std::move(request));
}
« no previous file with comments | « services/shell/tests/connect/connect_test_exe.cc ('k') | services/shell/tests/connect/connect_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698