DescriptionCurrently, any invocation of getToken() may result in consent UI being shown, which makes it hard to predict what UI changes may result when a token is requested. This CL simplifies the flow:
* Pre-authorize the app before calling the start() method.
* Only that first authorization will result in any in-app UI being shown.
* Subsequent calls to getToken() may cause the chrome.identity consent UI to be shown, but this should only happen in exceptional circumstances and since no DOM changes are involved, it's a more predictable flow.
Committed: https://crrev.com/fc25fc74bd0ba18099ce64a21d3daaa657f5967b
Cr-Commit-Position: refs/heads/master@{#319536}
Patch Set 1 #
Total comments: 20
Messages
Total messages: 13 (2 generated)
|