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

Issue 293063002: Multiple account support in chrome.identity.getAuthToken (Closed)

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

Description

Multiple account support in chrome.identity.getAuthToken This change adds an optional "account" field in the TokenDetails parameter to getAuthToken. When this field is populated with an object identifying a valid account signed in on the current profile, getAuthToken will return a token for the specified account. When the parameter is not present, getAuthToken behaves as before, returning tokens for the primary profile user. BUG=258515 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275173

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : tests, tweak to multi-account switch handling #

Patch Set 4 : remove unintentional reformat #

Patch Set 5 : fix build errors on mac and chrome OS #

Total comments: 1

Patch Set 6 : fix missing word in docs #

Total comments: 8

Patch Set 7 : address code review comments #

Patch Set 8 : use full name of enable-new-profile-management #

Unified diffs Side-by-side diffs Delta from patch set Stats (+354 lines, -56 lines) Patch
M chrome/browser/extensions/api/identity/account_tracker.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/identity/account_tracker.cc View 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/identity/gaia_web_auth_flow.h View 4 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc View 4 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/identity/gaia_web_auth_flow_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_api.h View 1 2 4 chunks +21 lines, -19 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_api.cc View 1 2 3 4 5 6 8 chunks +36 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_apitest.cc View 1 2 3 4 5 6 13 chunks +259 lines, -14 lines 0 comments Download
M chrome/common/extensions/api/identity.idl View 1 2 3 4 5 6 7 3 chunks +13 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Michael Courage
fgorski: chrome/browser/extensions/api/identity/* kalman: chrome/common/extensions/api/identity.idl Another piece of the designed-long-ago multi-login identity API.
6 years, 6 months ago (2014-05-29 21:09:35 UTC) #1
not at google - send to devlin
lgtm https://codereview.chromium.org/293063002/diff/70001/chrome/common/extensions/api/identity.idl File chrome/common/extensions/api/identity.idl (right): https://codereview.chromium.org/293063002/diff/70001/chrome/common/extensions/api/identity.idl#newcode27 chrome/common/extensions/api/identity.idl:27: // "new-profile-management" is set. the word "flag" seems ...
6 years, 6 months ago (2014-05-29 21:11:06 UTC) #2
fgorski
lgtm https://codereview.chromium.org/293063002/diff/90001/chrome/browser/extensions/api/identity/identity_api.cc File chrome/browser/extensions/api/identity/identity_api.cc (right): https://codereview.chromium.org/293063002/diff/90001/chrome/browser/extensions/api/identity/identity_api.cc#newcode680 chrome/browser/extensions/api/identity/identity_api.cc:680: // TODO(courage): figure out what account should be ...
6 years, 6 months ago (2014-06-03 23:46:41 UTC) #3
Michael Courage
https://codereview.chromium.org/293063002/diff/90001/chrome/browser/extensions/api/identity/identity_api.cc File chrome/browser/extensions/api/identity/identity_api.cc (right): https://codereview.chromium.org/293063002/diff/90001/chrome/browser/extensions/api/identity/identity_api.cc#newcode680 chrome/browser/extensions/api/identity/identity_api.cc:680: // TODO(courage): figure out what account should be here ...
6 years, 6 months ago (2014-06-04 23:37:37 UTC) #4
Michael Courage
The CQ bit was checked by courage@chromium.org
6 years, 6 months ago (2014-06-04 23:37:42 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/courage@chromium.org/293063002/130001
6 years, 6 months ago (2014-06-04 23:38:58 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-05 05:01:26 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-05 05:08:16 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_chromium_gn_compile_rel/builds/10836)
6 years, 6 months ago (2014-06-05 05:08:17 UTC) #9
Michael Courage
The CQ bit was checked by courage@chromium.org
6 years, 6 months ago (2014-06-05 16:53:51 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/courage@chromium.org/293063002/130001
6 years, 6 months ago (2014-06-05 16:56:04 UTC) #11
commit-bot: I haz the power
6 years, 6 months ago (2014-06-05 17:18:05 UTC) #12
Message was sent while issue was closed.
Change committed as 275173

Powered by Google App Engine
This is Rietveld 408576698