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

Unified Diff: services/ui/view_manager/view_associate_table.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
« no previous file with comments | « services/ui/launcher/launch_instance.cc ('k') | services/ui/view_manager/view_manager_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/view_manager/view_associate_table.cc
diff --git a/services/ui/view_manager/view_associate_table.cc b/services/ui/view_manager/view_associate_table.cc
index f3913caf16208d46f450b7b2c69babd28f5ae2cb..2088696f1a0193f8360a95b8d90c75dacd150a61 100644
--- a/services/ui/view_manager/view_associate_table.cc
+++ b/services/ui/view_manager/view_associate_table.cc
@@ -8,6 +8,7 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
+#include "mojo/public/cpp/application/connect.h"
#include "mojo/services/ui/views/cpp/formatting.h"
namespace view_manager {
@@ -35,12 +36,12 @@ void ViewAssociateTable::ConnectAssociates(
associates_.emplace_back(new AssociateData(url, inspector));
AssociateData* data = associates_.back().get();
- app_impl->ConnectToServiceDeprecated(url, &data->associate);
+ mojo::ConnectToService(app_impl->shell(), url, GetProxy(&data->associate));
data->associate.set_connection_error_handler(
base::Bind(connection_error_callback, url));
mojo::ui::ViewInspectorPtr inspector;
- data->inspector_binding.Bind(mojo::GetProxy(&inspector));
+ data->inspector_binding.Bind(GetProxy(&inspector));
data->associate->Connect(
inspector.Pass(),
base::Bind(&ViewAssociateTable::OnConnected, base::Unretained(this),
« no previous file with comments | « services/ui/launcher/launch_instance.cc ('k') | services/ui/view_manager/view_manager_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698