Chromium Code Reviews| Index: ash/system/enterprise/tray_enterprise.h |
| diff --git a/ash/system/enterprise/tray_enterprise.h b/ash/system/enterprise/tray_enterprise.h |
| index 72f044039f2a1010dddfe406b6fcef4fabfa50ef..e7f331a53aef272ecb7c7651c7b5c35b10c6c894 100644 |
| --- a/ash/system/enterprise/tray_enterprise.h |
| +++ b/ash/system/enterprise/tray_enterprise.h |
| @@ -14,6 +14,8 @@ namespace ash { |
| class LabelTrayView; |
| class SystemTray; |
| +// System tray item that shows a message ("This device managed by example.com") |
| +// in the tray menu for enterprise enrolled devices. |
| class TrayEnterprise : public SystemTrayItem, |
| public ViewClickListener, |
| public EnterpriseDomainObserver { |
| @@ -21,6 +23,8 @@ class TrayEnterprise : public SystemTrayItem, |
| explicit TrayEnterprise(SystemTray* system_tray); |
| ~TrayEnterprise() override; |
| + LabelTrayView* tray_view() { return tray_view_; } |
|
xiyuan
2017/04/26 19:55:12
nit: Prevailing style is to put inline accessors a
James Cook
2017/04/26 21:04:15
Done.
|
| + |
| // If message is not empty updates content of default view, otherwise hides |
| // tray items. |
| void UpdateEnterpriseMessage(); |