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

Unified Diff: services/ui/launcher/launcher_app.cc

Issue 1980763002: ApplicationConnection devolution, part 2.3. (Closed) Base URL: https://github.com/domokit/mojo.git@work794_app_conn_devo_2.2
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 d0f1377726920254925157be9206b091d5dd2b52..9a6fe1fab766a7bb2358b8f569737240ceecf53a 100644
--- a/services/ui/launcher/launcher_app.cc
+++ b/services/ui/launcher/launcher_app.cc
@@ -42,16 +42,15 @@ bool LauncherApp::ConfigureIncomingConnection(
if (connection->GetServiceProviderImpl()
.connection_context()
.remote_url.empty()) {
- connection->AddService<Launcher>(this);
+ connection->GetServiceProviderImpl().AddService<Launcher>(
+ [this](const mojo::ConnectionContext& connection_context,
+ mojo::InterfaceRequest<Launcher> launcher_request) {
+ bindings_.AddBinding(this, launcher_request.Pass());
+ });
}
return true;
}
-void LauncherApp::Create(const mojo::ConnectionContext& connection_context,
- mojo::InterfaceRequest<Launcher> request) {
- bindings_.AddBinding(this, request.Pass());
-}
-
void LauncherApp::Launch(const mojo::String& application_url) {
uint32_t next_id = next_id_++;
std::unique_ptr<LaunchInstance> instance(new LaunchInstance(
« 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