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

Unified Diff: services/shell/tests/connect/connect_test_exe.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
Index: services/shell/tests/connect/connect_test_exe.cc
diff --git a/services/shell/tests/connect/connect_test_exe.cc b/services/shell/tests/connect/connect_test_exe.cc
index 58a7c42691fbaefc4c744ef70cf928385011ec66..7060c8d10f705451cc00480ea443f58e79dda544 100644
--- a/services/shell/tests/connect/connect_test_exe.cc
+++ b/services/shell/tests/connect/connect_test_exe.cc
@@ -8,6 +8,8 @@
#include "mojo/public/cpp/bindings/binding_set.h"
#include "services/shell/public/cpp/connection.h"
#include "services/shell/public/cpp/connector.h"
+#include "services/shell/public/cpp/interface_factory.h"
+#include "services/shell/public/cpp/interface_registry.h"
#include "services/shell/public/cpp/service.h"
#include "services/shell/runner/child/test_native_main.h"
#include "services/shell/runner/init.h"
@@ -30,8 +32,9 @@ class Target : public shell::Service,
void OnStart(const shell::Identity& identity) override {
identity_ = identity;
}
- bool OnConnect(shell::Connection* connection) override {
- connection->AddInterface<ConnectTestService>(this);
+ bool OnConnect(const shell::Identity& remote_identity,
+ shell::InterfaceRegistry* registry) override {
+ registry->AddInterface<ConnectTestService>(this);
return true;
}
« no previous file with comments | « services/shell/tests/connect/connect_test_driver.cc ('k') | services/shell/tests/connect/connect_test_package.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698