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

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

Issue 2617763003: Add a mojo interface for AccountId (Closed)
Patch Set: allow UNKNOWN account type Created 3 years, 11 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/public/interfaces/session_controller.mojom
diff --git a/ash/public/interfaces/session_controller.mojom b/ash/public/interfaces/session_controller.mojom
index c3b03019837be0e3e8b44282796d9dcaa15d21a3..7aa76f4f231a2f533ff6c03dd3367be0245a3f7d 100644
--- a/ash/public/interfaces/session_controller.mojom
+++ b/ash/public/interfaces/session_controller.mojom
@@ -4,6 +4,7 @@
module ash.mojom;
+import "components/signin/public/interfaces/account_id.mojom";
import "skia/public/interfaces/bitmap.mojom";
// Matches session_manager::SessionState.
@@ -73,7 +74,7 @@ struct UserSession {
uint32 session_id;
UserType type;
- string serialized_account_id; // TODO(xiyuan): Use typemapping for AccountId.
+ signin.mojom.AccountId account_id;
string display_name;
string display_email;
skia.mojom.Bitmap avatar;
@@ -139,7 +140,7 @@ interface SessionControllerClient {
// Switch to the active user with |account_id| (if the user has already signed
// in).
- SwitchActiveUser(string account_id);
+ SwitchActiveUser(signin.mojom.AccountId account_id);
// Switch the active user to the next or previous user.
CycleActiveUser(bool next_user);

Powered by Google App Engine
This is Rietveld 408576698