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

Unified Diff: ash/public/interfaces/session_controller.mojom

Issue 2832903002: cros: Remove supervised user methods from SystemTrayDelegate (Closed)
Patch Set: rebase 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
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/system/supervised/custodian_info_tray_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/public/interfaces/session_controller.mojom
diff --git a/ash/public/interfaces/session_controller.mojom b/ash/public/interfaces/session_controller.mojom
index 0dd24b166e741fd3f257e86c97ddc8f82d416865..fbebb372a82b114c0760a278728d10b400e10def 100644
--- a/ash/public/interfaces/session_controller.mojom
+++ b/ash/public/interfaces/session_controller.mojom
@@ -71,7 +71,8 @@ enum CycleUserDirection {
PREVIOUS, // Cycle to the previous user.
};
-// Info about a user session in ash.
+// Info about a user session in ash. May be sent repeatedly for a single user
+// because individual fields may change (e.g. the avatar image or custodians).
struct UserSession {
// A user session id for the user session. It is generated by session manager
// (chrome) when a user session starts and never changes during the lifetime
@@ -85,6 +86,14 @@ struct UserSession {
string display_email;
gfx.mojom.ImageSkia avatar;
+ // For supervised users only, the email address of the custodian account.
+ // Empty for non-supervised users. Available after profile is loaded.
+ string custodian_email;
+
+ // For supervised users only, the email address of the second custodian
+ // account, if any. Available after profile is loaded.
+ string second_custodian_email;
+
// Whether the settings icon should be enabled in the system tray menu.
// Usually true after login, but can be false for specialized user sessions
// (e.g. adding supervised users).
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/system/supervised/custodian_info_tray_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698