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

Unified Diff: examples/bank_app/bank.cc

Issue 1977043002: ApplicationConnection devolution, part 1. (Closed) Base URL: https://github.com/domokit/mojo.git@work791_service_registry_spimpl
Patch Set: rebased Created 4 years, 7 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 | « no previous file | mojo/public/cpp/application/application_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/bank_app/bank.cc
diff --git a/examples/bank_app/bank.cc b/examples/bank_app/bank.cc
index 7229c6fc310952844e12cdb7f7fdeaa2fdb14434..4593b13abafd040ced193526fc65991706e0da47 100644
--- a/examples/bank_app/bank.cc
+++ b/examples/bank_app/bank.cc
@@ -59,7 +59,8 @@ class BankApp : public mojo::ApplicationDelegate,
// From ApplicationDelegate
bool ConfigureIncomingConnection(
mojo::ApplicationConnection* connection) override {
- std::string url = connection->GetRemoteApplicationURL();
+ std::string url =
+ connection->GetServiceProviderImpl().connection_context().remote_url;
if (url.length() > 0) {
vanadium::AppInstanceNamePtr app(vanadium::AppInstanceName::New());
app->url = url;
« no previous file with comments | « no previous file | mojo/public/cpp/application/application_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698