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

Unified Diff: services/ui/launcher/launcher_app.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
« no previous file with comments | « services/ui/launcher/launcher_app.h ('k') | services/ui/view_manager/view_manager_app.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/launcher/launcher_app.cc
diff --git a/services/ui/launcher/launcher_app.cc b/services/ui/launcher/launcher_app.cc
index 9a6fe1fab766a7bb2358b8f569737240ceecf53a..31c16b255bbcaef48aa4959b8e8b159d03dc0ee0 100644
--- a/services/ui/launcher/launcher_app.cc
+++ b/services/ui/launcher/launcher_app.cc
@@ -37,12 +37,10 @@ void LauncherApp::Initialize(mojo::ApplicationImpl* app_impl) {
}
bool LauncherApp::ConfigureIncomingConnection(
- mojo::ApplicationConnection* connection) {
+ mojo::ServiceProviderImpl* service_provider_impl) {
// Only present the launcher interface to the shell.
- if (connection->GetServiceProviderImpl()
- .connection_context()
- .remote_url.empty()) {
- connection->GetServiceProviderImpl().AddService<Launcher>(
+ if (service_provider_impl->connection_context().remote_url.empty()) {
+ service_provider_impl->AddService<Launcher>(
[this](const mojo::ConnectionContext& connection_context,
mojo::InterfaceRequest<Launcher> launcher_request) {
bindings_.AddBinding(this, launcher_request.Pass());
« no previous file with comments | « services/ui/launcher/launcher_app.h ('k') | services/ui/view_manager/view_manager_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698