Index: chrome/common/extensions/api/identity.idl |
diff --git a/chrome/common/extensions/api/identity.idl b/chrome/common/extensions/api/identity.idl |
index a4893b25e826637ef624fb537f2cb99e53a00f02..841230c1da09b9efeeb2313edad2e7c419085a65 100644 |
--- a/chrome/common/extensions/api/identity.idl |
+++ b/chrome/common/extensions/api/identity.idl |
@@ -5,6 +5,12 @@ |
// Use the <code>chrome.identity</code> API to get OAuth2 access tokens. |
namespace identity { |
+ dictionary AccountInfo { |
+ // A unique identifier for the account. This ID will not change |
+ // for the lifetime of the account. |
+ DOMString id; |
+ }; |
+ |
dictionary TokenDetails { |
// Fetching a token may require the user to sign-in to Chrome, or |
// approve the application's requested scopes. If the interactive |
@@ -13,6 +19,13 @@ namespace identity { |
// <code>false</code> or omitted, <code>getAuthToken</code> will |
// return failure any time a prompt would be required. |
boolean? interactive; |
+ |
+ // The account ID whose token should be returned. If not |
+ // specified, the primary account for the profile will be used. |
+ // |
+ // <code>account</code> is only supported when the |
+ // "new-profile-management" is set. |
not at google - send to devlin
2014/05/29 21:11:07
the word "flag" seems left out
|
+ AccountInfo? account; |
}; |
dictionary InvalidTokenDetails { |
@@ -39,12 +52,6 @@ namespace identity { |
boolean? interactive; |
}; |
- dictionary AccountInfo { |
- // A unique identifier for the account. This ID will not change |
- // for the lifetime of the account. |
- DOMString id; |
- }; |
- |
callback GetAuthTokenCallback = void (optional DOMString token); |
callback GetAccountsCallback = void (AccountInfo[] accounts); |
callback InvalidateAuthTokenCallback = void (); |