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

Unified Diff: mash/task_viewer/task_viewer.cc

Issue 2617883002: Add a new BindInterface() method to Connector. (Closed)
Patch Set: . Created 3 years, 11 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 | « mash/quick_launch/quick_launch.cc ('k') | mash/webtest/webtest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/task_viewer/task_viewer.cc
diff --git a/mash/task_viewer/task_viewer.cc b/mash/task_viewer/task_viewer.cc
index 30025d441bec5370dd810362fc11f665219bec56..740ee35990ab433440bf8d47dbf631ee043af473 100644
--- a/mash/task_viewer/task_viewer.cc
+++ b/mash/task_viewer/task_viewer.cc
@@ -314,16 +314,15 @@ void TaskViewer::Launch(uint32_t what, mojom::LaunchMode how) {
}
service_manager::mojom::ServiceManagerPtr service_manager;
- context()->connector()->ConnectToInterface(
- service_manager::mojom::kServiceName, &service_manager);
+ context()->connector()->BindInterface(service_manager::mojom::kServiceName,
+ &service_manager);
service_manager::mojom::ServiceManagerListenerPtr listener;
service_manager::mojom::ServiceManagerListenerRequest request(&listener);
service_manager->AddListener(std::move(listener));
catalog::mojom::CatalogPtr catalog;
- context()->connector()->ConnectToInterface(catalog::mojom::kServiceName,
- &catalog);
+ context()->connector()->BindInterface(catalog::mojom::kServiceName, &catalog);
TaskViewerContents* task_viewer = new TaskViewerContents(
this, std::move(request), std::move(catalog));
« no previous file with comments | « mash/quick_launch/quick_launch.cc ('k') | mash/webtest/webtest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698