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

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

Issue 274853002: Identity API: add chrome.identity.getAccounts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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: chrome/common/extensions/api/identity.idl
diff --git a/chrome/common/extensions/api/identity.idl b/chrome/common/extensions/api/identity.idl
index 5f018bd2f979ae2c9dedf036b66d4e8fa17bf4bb..a4893b25e826637ef624fb537f2cb99e53a00f02 100644
--- a/chrome/common/extensions/api/identity.idl
+++ b/chrome/common/extensions/api/identity.idl
@@ -46,10 +46,16 @@ namespace identity {
};
callback GetAuthTokenCallback = void (optional DOMString token);
+ callback GetAccountsCallback = void (AccountInfo[] accounts);
callback InvalidateAuthTokenCallback = void ();
callback LaunchWebAuthFlowCallback = void (optional DOMString responseUrl);
interface Functions {
+ // Retrieves a list of AccountInfo objects describing the accounts
+ // present on the profile.<br>
+ // <code>getAccounts</code> is only supported on dev channel.
+ static void getAccounts(GetAccountsCallback callback);
+
// Gets an OAuth2 access token using the client ID and scopes
// specified in the <a
// href="app_identity.html#update_manifest"><code>oauth2</code>
« no previous file with comments | « chrome/common/extensions/api/_api_features.json ('k') | components/signin/core/common/profile_management_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698