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

Unified Diff: chrome/common/extensions/api/identity.idl

Issue 293063002: Multiple account support in chrome.identity.getAuthToken (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use full name of enable-new-profile-management Created 6 years, 6 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 | « chrome/browser/extensions/api/identity/identity_apitest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ();
« no previous file with comments | « chrome/browser/extensions/api/identity/identity_apitest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698