|
Identity API: add multi-account support to token cache and request queues
This change is part of adding chrome.identity.getAccountAndAuthToken.
The token cache in IdentityAPI and the IdentityMintRequestQueue both had
separate code for tranlating the same API parameters to a lookup key for
their internal maps. They now both use ExtensionTokenKey.
The ExtensionTokenKey includes an account_id field which will allow its
users to support multiple accounts in one profile. All callers currently
use the primary account ID, but will be updated in a future change.
This change also fixes a bug where getAuthToken would return tokens
for the wrong user after switching the account on the profile.
BUG= 324874, 322284
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238292
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+337 lines, -312 lines) |
Patch |
 |
M |
chrome/browser/extensions/api/identity/experimental_identity_apitest.cc
|
View
|
|
8 chunks |
+24 lines, -12 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/extensions/api/identity/extension_token_key.h
|
View
|
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/extensions/api/identity/extension_token_key.cc
|
View
|
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/extensions/api/identity/extension_token_key_unittest.cc
|
View
|
|
1 chunk |
+72 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/identity/identity_api.h
|
View
|
|
4 chunks |
+5 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/identity/identity_api.cc
|
View
|
|
11 chunks |
+17 lines, -46 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/identity/identity_apitest.cc
|
View
|
|
22 chunks |
+64 lines, -56 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/identity/identity_mint_queue.h
|
View
|
|
2 chunks |
+14 lines, -22 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/identity/identity_mint_queue.cc
|
View
|
|
1 chunk |
+33 lines, -46 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/identity/identity_mint_queue_unittest.cc
|
View
|
|
2 chunks |
+36 lines, -107 lines |
2 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/identity_internals_ui.cc
|
View
|
|
6 chunks |
+6 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/identity_internals_ui_browsertest.cc
|
View
|
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser_extensions.gypi
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests_unit.gypi
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 7 (0 generated)
|