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

Unified Diff: examples/bank_app/bank.cc

Issue 1979723002: ApplicationConnection devolution, part 3. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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
Index: examples/bank_app/bank.cc
diff --git a/examples/bank_app/bank.cc b/examples/bank_app/bank.cc
index ea70adc2d9f70d2225690e73abeeee3f0f8b1c3f..9e14044725cb2c834b4f8db8abc67ec3f7ba5a18 100644
--- a/examples/bank_app/bank.cc
+++ b/examples/bank_app/bank.cc
@@ -56,9 +56,8 @@ class BankApp : public mojo::ApplicationDelegate {
// From ApplicationDelegate
bool ConfigureIncomingConnection(
- mojo::ApplicationConnection* connection) override {
- std::string url =
- connection->GetServiceProviderImpl().connection_context().remote_url;
+ mojo::ServiceProviderImpl* service_provider_impl) override {
+ std::string url = service_provider_impl->connection_context().remote_url;
if (url.length() > 0) {
vanadium::AppInstanceNamePtr app(vanadium::AppInstanceName::New());
app->url = url;
@@ -77,7 +76,7 @@ class BankApp : public mojo::ApplicationDelegate {
}
MOJO_LOG(INFO) << "Customer " << user << " accessing bank";
}
- connection->GetServiceProviderImpl().AddService<Bank>(
+ service_provider_impl->AddService<Bank>(
[this](const mojo::ConnectionContext& connection_context,
mojo::InterfaceRequest<Bank> bank_request) {
bindings_.AddBinding(&bank_impl_, bank_request.Pass());
« no previous file with comments | « examples/apptest/example_service_application.cc ('k') | examples/content_handler_demo/content_handler_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698