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

Unified Diff: components/signin/public/interfaces/account_id.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: components/signin/public/interfaces/account_id.mojom
diff --git a/components/signin/public/interfaces/account_id.mojom b/components/signin/public/interfaces/account_id.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..f0f9abdc1a3db7a4f8e4da777e7f6191a591385c
--- /dev/null
+++ b/components/signin/public/interfaces/account_id.mojom
@@ -0,0 +1,19 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module signin.mojom;
+
+// Matches AccountType of AccountId.
+enum AccountType {
+ UNKNOWN,
+ GOOGLE,
+ ACTIVE_DIRECTORY,
+};
+
+// Mirror of AccountId in Mojo.
+struct AccountId {
+ AccountType account_type;
+ string id;
+ string user_email;
+};

Powered by Google App Engine
This is Rietveld 408576698