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

Unified Diff: content/public/test/test_mojo_app.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: content/public/test/test_mojo_app.cc
diff --git a/content/public/test/test_mojo_app.cc b/content/public/test/test_mojo_app.cc
index a33c3deb5c90c23a070e02fe4ad87b83b3773a94..d3ab0f7b11846d495e48d628a3b9717aaace2455 100644
--- a/content/public/test/test_mojo_app.cc
+++ b/content/public/test/test_mojo_app.cc
@@ -21,9 +21,10 @@ TestMojoApp::TestMojoApp() : service_binding_(this) {
TestMojoApp::~TestMojoApp() {
}
-bool TestMojoApp::OnConnect(shell::Connection* connection) {
- requestor_name_ = connection->GetRemoteIdentity().name();
- connection->AddInterface<mojom::TestMojoService>(this);
+bool TestMojoApp::OnConnect(const shell::Identity& remote_identity,
+ shell::InterfaceRegistry* registry) {
+ requestor_name_ = remote_identity.name();
+ registry->AddInterface<mojom::TestMojoService>(this);
return true;
}
« no previous file with comments | « content/public/test/test_mojo_app.h ('k') | content/renderer/mus/render_widget_window_tree_client_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698