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

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

Issue 1916233002: Mark ApplicationImpl::ConnectTo{Application,Service}() as deprecated. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 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/test_service/test_time_service_impl.cc ('k') | services/ui/view_manager/view_associate_table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/launcher/launch_instance.cc
diff --git a/services/ui/launcher/launch_instance.cc b/services/ui/launcher/launch_instance.cc
index 89a2298fe0af80bda200857656423e94a3571637..4b87de4fa1083d6923e25199bb4796c3771b9456 100644
--- a/services/ui/launcher/launch_instance.cc
+++ b/services/ui/launcher/launch_instance.cc
@@ -30,18 +30,20 @@ void LaunchInstance::Launch() {
DVLOG(1) << "Launching " << app_url_;
TRACE_EVENT0("launcher", __func__);
- app_impl_->ConnectToService("mojo:compositor_service", &compositor_);
+ app_impl_->ConnectToServiceDeprecated("mojo:compositor_service",
+ &compositor_);
compositor_.set_connection_error_handler(base::Bind(
&LaunchInstance::OnCompositorConnectionError, base::Unretained(this)));
- app_impl_->ConnectToService("mojo:view_manager_service", &view_manager_);
+ app_impl_->ConnectToServiceDeprecated("mojo:view_manager_service",
+ &view_manager_);
view_manager_.set_connection_error_handler(base::Bind(
&LaunchInstance::OnViewManagerConnectionError, base::Unretained(this)));
InitViewport();
mojo::ui::ViewProviderPtr client_view_provider;
- app_impl_->ConnectToService(app_url_, &client_view_provider);
+ app_impl_->ConnectToServiceDeprecated(app_url_, &client_view_provider);
client_view_provider->CreateView(mojo::GetProxy(&client_view_owner_), nullptr,
nullptr);
@@ -58,7 +60,8 @@ void LaunchInstance::OnViewManagerConnectionError() {
}
void LaunchInstance::InitViewport() {
- app_impl_->ConnectToService("mojo:native_viewport_service", &viewport_);
+ app_impl_->ConnectToServiceDeprecated("mojo:native_viewport_service",
+ &viewport_);
viewport_.set_connection_error_handler(base::Bind(
&LaunchInstance::OnViewportConnectionError, base::Unretained(this)));
« no previous file with comments | « services/test_service/test_time_service_impl.cc ('k') | services/ui/view_manager/view_associate_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698