Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(913)

Unified Diff: ash/system/enterprise/tray_enterprise.h

Issue 2839043004: chromeos: Refactor ash SystemTrayDelegate enterprise methods to mojo (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698