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

Issue 274853002: Identity API: add chrome.identity.getAccounts (Closed)

Created:
6 years, 7 months ago by Michael Courage
Modified:
6 years, 7 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Identity API: add chrome.identity.getAccounts This new API returns a list of accounts signed in to the profile. The first element of the list is always the primary account. Other accounts are returned after, sorted by obfuscated gaia ID. The API is currently available in dev channel. If the flag --extensions-multi-account (or --new-profile-management) is enabled, getAccounts will return all accounts. Otherwise only the primary account is returned. BUG=258515 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270325

Patch Set 1 #

Patch Set 2 : better browser tests #

Patch Set 3 : rebase #

Patch Set 4 : add account sorting comment, and remove unused headers #

Patch Set 5 : add IDENTITY_GETACCOUNTS to histograms.xml #

Total comments: 8

Patch Set 6 : address formatting comments #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+444 lines, -84 lines) Patch
M chrome/browser/extensions/api/identity/account_tracker.h View 1 2 3 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/identity/account_tracker.cc View 2 chunks +42 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/identity/account_tracker_unittest.cc View 1 2 3 4 5 23 chunks +151 lines, -77 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_api.h View 3 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_api.cc View 1 2 3 4 5 4 chunks +56 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_apitest.cc View 1 2 3 3 chunks +136 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_api_features.json View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/identity.idl View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M components/signin/core/common/profile_management_switches.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/signin/core/common/profile_management_switches.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M components/signin/core/common/signin_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/signin/core/common/signin_switches.cc View 1 2 3 4 5 1 chunk +8 lines, -5 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Michael Courage
fgorski: chrome/browser/extensions/api/identity/* rogerta: components/signin/core/common/profile_management_switches.cc components/signin/core/common/profile_management_switches.h components/signin/core/common/signin_switches.cc components/signin/core/common/signin_switches.h asvitkine: extensions/browser/extension_function_histogram_value.h tools/metrics/histograms/histograms.xml kalman: chrome/common/extensions/api/_api_features.json chrome/common/extensions/api/identity.idl
6 years, 7 months ago (2014-05-13 01:15:03 UTC) #1
Roger Tawa OOO till Jul 10th
lgtm https://codereview.chromium.org/274853002/diff/70001/chrome/browser/extensions/api/identity/identity_api.cc File chrome/browser/extensions/api/identity/identity_api.cc (right): https://codereview.chromium.org/274853002/diff/70001/chrome/browser/extensions/api/identity/identity_api.cc#newcode258 chrome/browser/extensions/api/identity/identity_api.cc:258: ~IdentityGetAccountsFunction() { nit: I don't think you need ...
6 years, 7 months ago (2014-05-13 14:13:12 UTC) #2
fgorski
lgtm https://codereview.chromium.org/274853002/diff/70001/chrome/browser/extensions/api/identity/account_tracker_unittest.cc File chrome/browser/extensions/api/identity/account_tracker_unittest.cc (right): https://codereview.chromium.org/274853002/diff/70001/chrome/browser/extensions/api/identity/account_tracker_unittest.cc#newcode295 chrome/browser/extensions/api/identity/account_tracker_unittest.cc:295: // We don't sign the primary user in ...
6 years, 7 months ago (2014-05-13 16:22:12 UTC) #3
Alexei Svitkine (slow)
histograms lgtm
6 years, 7 months ago (2014-05-13 16:57:16 UTC) #4
Michael Courage
https://codereview.chromium.org/274853002/diff/70001/chrome/browser/extensions/api/identity/account_tracker_unittest.cc File chrome/browser/extensions/api/identity/account_tracker_unittest.cc (right): https://codereview.chromium.org/274853002/diff/70001/chrome/browser/extensions/api/identity/account_tracker_unittest.cc#newcode295 chrome/browser/extensions/api/identity/account_tracker_unittest.cc:295: // We don't sign the primary user in and ...
6 years, 7 months ago (2014-05-13 17:02:06 UTC) #5
not at google - send to devlin
schema lgtm. IIRC we reviewed this API aaaages ago?
6 years, 7 months ago (2014-05-13 19:29:11 UTC) #6
Michael Courage
On 2014/05/13 19:29:11, kalman wrote: > schema lgtm. IIRC we reviewed this API aaaages ago? ...
6 years, 7 months ago (2014-05-13 19:52:26 UTC) #7
Michael Courage
The CQ bit was checked by courage@chromium.org
6 years, 7 months ago (2014-05-13 21:50:43 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/courage@chromium.org/274853002/30002
6 years, 7 months ago (2014-05-13 22:05:14 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-13 22:50:53 UTC) #10
Michael Courage
The CQ bit was checked by courage@chromium.org
6 years, 7 months ago (2014-05-13 22:54:03 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/courage@chromium.org/274853002/90001
6 years, 7 months ago (2014-05-13 23:06:44 UTC) #12
commit-bot: I haz the power
6 years, 7 months ago (2014-05-14 03:55:28 UTC) #13
Message was sent while issue was closed.
Change committed as 270325

Powered by Google App Engine
This is Rietveld 408576698