| Index: mash/catalog_viewer/catalog_viewer.cc
|
| diff --git a/mash/catalog_viewer/catalog_viewer.cc b/mash/catalog_viewer/catalog_viewer.cc
|
| index a0be96f5e80ec4fe55b81e41087e038b7f21cbb4..aab46a793e0aa6099c7a643374bf7dcad20234dc 100644
|
| --- a/mash/catalog_viewer/catalog_viewer.cc
|
| +++ b/mash/catalog_viewer/catalog_viewer.cc
|
| @@ -207,7 +207,9 @@ class CatalogViewerContents : public views::WidgetDelegateView,
|
|
|
| } // namespace
|
|
|
| -CatalogViewer::CatalogViewer() {}
|
| +CatalogViewer::CatalogViewer() {
|
| + registry_.AddInterface<mojom::Launchable>(this);
|
| +}
|
| CatalogViewer::~CatalogViewer() {}
|
|
|
| void CatalogViewer::RemoveWindow(views::Widget* window) {
|
| @@ -226,10 +228,12 @@ void CatalogViewer::OnStart() {
|
| std::string(), nullptr, views::AuraInit::Mode::AURA_MUS);
|
| }
|
|
|
| -bool CatalogViewer::OnConnect(const service_manager::ServiceInfo& remote_info,
|
| - service_manager::InterfaceRegistry* registry) {
|
| - registry->AddInterface<mojom::Launchable>(this);
|
| - return true;
|
| +void CatalogViewer::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 CatalogViewer::Launch(uint32_t what, mojom::LaunchMode how) {
|
|
|