1 // Copyright 2019 The Chromium Authors
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<crosapi::mojom::CrosDisplayConfigController>
18 if (Shell::HasInstance())
19 Shell::Get()->cros_display_config()->BindReceiver(std::move(receiver));
22 void BindTrayAction(mojo::PendingReceiver<mojom::TrayAction> receiver) {
23 if (Shell::HasInstance())
24 Shell::Get()->tray_action()->BindReceiver(std::move(receiver));