| Index: mash/task_viewer/task_viewer.cc
|
| diff --git a/mash/task_viewer/task_viewer.cc b/mash/task_viewer/task_viewer.cc
|
| index 740ee35990ab433440bf8d47dbf631ee043af473..c7b8cf17d77ffe2ce9e0245603045a93405ad98b 100644
|
| --- a/mash/task_viewer/task_viewer.cc
|
| +++ b/mash/task_viewer/task_viewer.cc
|
| @@ -280,7 +280,9 @@ class TaskViewerContents
|
|
|
| } // namespace
|
|
|
| -TaskViewer::TaskViewer() {}
|
| +TaskViewer::TaskViewer() {
|
| + registry_.AddInterface<::mash::mojom::Launchable>(this);
|
| +}
|
| TaskViewer::~TaskViewer() {}
|
|
|
| void TaskViewer::RemoveWindow(views::Widget* widget) {
|
| @@ -299,10 +301,12 @@ void TaskViewer::OnStart() {
|
| std::string(), nullptr, views::AuraInit::Mode::AURA_MUS);
|
| }
|
|
|
| -bool TaskViewer::OnConnect(const service_manager::ServiceInfo& remote_info,
|
| - service_manager::InterfaceRegistry* registry) {
|
| - registry->AddInterface<::mash::mojom::Launchable>(this);
|
| - return true;
|
| +void TaskViewer::OnBindInterface(
|
| + const service_manager::ServiceInfo& source_info,
|
| + const std::string& interface_name,
|
| + mojo::ScopedMessagePipeHandle interface_pipe) {
|
| + registry_.BindInterface(source_info.identity, interface_name,
|
| + std::move(interface_pipe));
|
| }
|
|
|
| void TaskViewer::Launch(uint32_t what, mojom::LaunchMode how) {
|
|
|