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

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: add IDENTITY_GETACCOUNTS to histograms.xml 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 10c73422a313b13f193ad79d960d5159ff87e7c1..d3983ccd8a50a6be70a1074e043769de6579768c 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>

Powered by Google App Engine
This is Rietveld 408576698