Index: ash/mus/sysui_application.cc |
diff --git a/ash/mus/sysui_application.cc b/ash/mus/sysui_application.cc |
index 92302485d160fb25dfd6b507f008afd9812dc1ea..157a4af79c481a95d7b569feade71243f4722fbe 100644 |
--- a/ash/mus/sysui_application.cc |
+++ b/ash/mus/sysui_application.cc |
@@ -8,6 +8,7 @@ |
#include "ash/host/ash_window_tree_host_init_params.h" |
#include "ash/host/ash_window_tree_host_platform.h" |
#include "ash/mus/keyboard_ui_mus.h" |
+#include "ash/mus/shelf_delegate_mus.h" |
#include "ash/mus/shell_delegate_mus.h" |
#include "ash/mus/stub_context_factory.h" |
#include "ash/root_window_settings.h" |
@@ -294,8 +295,17 @@ void SysUIApplication::Initialize(mojo::Connector* connector, |
} |
bool SysUIApplication::AcceptConnection(mojo::Connection* connection) { |
+ connection->AddInterface<mash::shelf::mojom::Shelf>(this); |
return true; |
} |
+void SysUIApplication::Create( |
+ mojo::Connection* connection, |
+ mojo::InterfaceRequest<mash::shelf::mojom::Shelf> request) { |
+ ShelfDelegate* delegate = Shell::GetInstance()->GetShelfDelegate(); |
+ mash::shelf::mojom::Shelf* shelf = static_cast<ShelfDelegateMus*>(delegate); |
+ shelf_bindings_.AddBinding(shelf, std::move(request)); |
+} |
+ |
} // namespace sysui |
} // namespace ash |