1 // Copyright 2019 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ash/public/ash_interfaces.h"
9 #include "ash/display/cros_display_config.h"
10 #include "ash/shell.h"
11 #include "ash/tray_action/tray_action.h"
15 void BindCrosDisplayConfigController(
16 mojo::PendingReceiver<mojom::CrosDisplayConfigController> receiver) {
17 if (Shell::HasInstance())
18 Shell::Get()->cros_display_config()->BindReceiver(std::move(receiver));
21 void BindTrayAction(mojo::PendingReceiver<mojom::TrayAction> receiver) {
22 if (Shell::HasInstance())
23 Shell::Get()->tray_action()->BindReceiver(std::move(receiver));