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

Unified Diff: services/navigation/navigation.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.h ('k') | services/shell/background/tests/test_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/navigation/navigation.cc
diff --git a/services/navigation/navigation.cc b/services/navigation/navigation.cc
index 46a6236e68f61a79567a2114d0a3a1c923699b02..46375862e74339ee63aa0f7adfb3c81ddc578a1d 100644
--- a/services/navigation/navigation.cc
+++ b/services/navigation/navigation.cc
@@ -35,9 +35,10 @@ Navigation::Navigation()
}
Navigation::~Navigation() {}
-bool Navigation::OnConnect(shell::Connection* connection,
+bool Navigation::OnConnect(const shell::Identity& remote_identity,
+ shell::InterfaceRegistry* registry,
shell::Connector* connector) {
- std::string remote_user_id = connection->GetRemoteIdentity().user_id();
+ std::string remote_user_id = remote_identity.user_id();
if (!client_user_id_.empty() && client_user_id_ != remote_user_id) {
LOG(ERROR) << "Must have a separate Navigation service instance for "
<< "different BrowserContexts.";
@@ -45,7 +46,7 @@ bool Navigation::OnConnect(shell::Connection* connection,
}
client_user_id_ = remote_user_id;
- connection->AddInterface<mojom::ViewFactory>(this);
+ registry->AddInterface<mojom::ViewFactory>(this);
return true;
}
« no previous file with comments | « services/navigation/navigation.h ('k') | services/shell/background/tests/test_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698