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

Unified Diff: mojo/public/cpp/application/lib/application_impl.cc

Issue 943053003: Simple multi-url support for mojo apps (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: hate Created 5 years, 10 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: mojo/public/cpp/application/lib/application_impl.cc
diff --git a/mojo/public/cpp/application/lib/application_impl.cc b/mojo/public/cpp/application/lib/application_impl.cc
index 022b2e7a8a86d9165e71067ede2d04e8131cb301..de3f2ee1264ed4b852caaa83fbc74f144ea71b7d 100644
--- a/mojo/public/cpp/application/lib/application_impl.cc
+++ b/mojo/public/cpp/application/lib/application_impl.cc
@@ -97,10 +97,11 @@ void ApplicationImpl::UnbindConnections(
void ApplicationImpl::AcceptConnection(
const String& requestor_url,
InterfaceRequest<ServiceProvider> services,
- ServiceProviderPtr exposed_services) {
+ ServiceProviderPtr exposed_services,
+ const mojo::String& url) {
internal::ServiceRegistry* registry = new internal::ServiceRegistry(
this, requestor_url, exposed_services.Pass(), services.Pass());
- if (!delegate_->ConfigureIncomingConnection(registry)) {
+ if (!delegate_->ConfigureIncomingConnection(registry, url)) {
delete registry;
return;
}

Powered by Google App Engine
This is Rietveld 408576698