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

Unified Diff: services/shell/background/tests/test_service.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/navigation/navigation.cc ('k') | services/shell/public/cpp/connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/background/tests/test_service.cc
diff --git a/services/shell/background/tests/test_service.cc b/services/shell/background/tests/test_service.cc
index 9575e1ab688d89ed9fe158a096c4837534db2a7b..cde26bbfa6a08c5301dbf61a6a2d32c2c96146db 100644
--- a/services/shell/background/tests/test_service.cc
+++ b/services/shell/background/tests/test_service.cc
@@ -5,7 +5,7 @@
#include "mojo/public/cpp/bindings/binding_set.h"
#include "services/shell/background/tests/test.mojom.h"
#include "services/shell/public/c/main.h"
-#include "services/shell/public/cpp/connection.h"
+#include "services/shell/public/cpp/interface_registry.h"
#include "services/shell/public/cpp/service.h"
#include "services/shell/public/cpp/service_runner.h"
@@ -20,8 +20,9 @@ class TestClient : public Service,
private:
// Service:
- bool OnConnect(Connection* connection) override {
- connection->AddInterface(this);
+ bool OnConnect(const Identity& remote_identity,
+ InterfaceRegistry* registry) override {
+ registry->AddInterface(this);
return true;
}
bool OnStop() override {
« no previous file with comments | « services/navigation/navigation.cc ('k') | services/shell/public/cpp/connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698