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

Unified Diff: services/ui/view_manager/view_manager_app.cc

Issue 1919313002: ApplicationImpl::ConnectToServiceDeprecated() -> mojo::ConnectToService() conversion, part 3. (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
Index: services/ui/view_manager/view_manager_app.cc
diff --git a/services/ui/view_manager/view_manager_app.cc b/services/ui/view_manager/view_manager_app.cc
index 07d2d897b8d402026d60b18aaad22f2e9a66a2f6..a77b49a347b7eb8e7c1bf03c5f640b3f5efcdbe8 100644
--- a/services/ui/view_manager/view_manager_app.cc
+++ b/services/ui/view_manager/view_manager_app.cc
@@ -15,6 +15,7 @@
#include "mojo/public/c/system/main.h"
#include "mojo/public/cpp/application/application_connection.h"
#include "mojo/public/cpp/application/application_impl.h"
+#include "mojo/public/cpp/application/connect.h"
#include "services/ui/view_manager/view_manager_impl.h"
namespace view_manager {
@@ -36,7 +37,8 @@ void ViewManagerApp::Initialize(mojo::ApplicationImpl* app_impl) {
// Connect to compositor.
mojo::gfx::composition::CompositorPtr compositor;
- app_impl_->ConnectToServiceDeprecated("mojo:compositor_service", &compositor);
+ mojo::ConnectToService(app_impl_->shell(), "mojo:compositor_service",
+ GetProxy(&compositor));
compositor.set_connection_error_handler(base::Bind(
&ViewManagerApp::OnCompositorConnectionError, base::Unretained(this)));
« no previous file with comments | « services/ui/view_manager/view_associate_table.cc ('k') | services/url_response_disk_cache/url_response_disk_cache_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698