| 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..ba85b5ad20a69e35cef8c15e85ce43f008f6b589 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
|
| + // "enable-new-profile-management" flag is set.
|
| + 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 ();
|
|
|