Chromium Code Reviews
DescriptionFix race issue in ArcAuthService.
ArcAuthService had an race issue, around manual "SIGN IN"
click flow.
This CL fixes it by moving everyting into ArcManualAuthCodeFetcher
implementation, and make it cancellable by deleting.
For that purpose, this CL introduces ArcAuthFetcher interface,
and has (old) ArcAuthCodeFetcher and ArcRobotAuth implement it, as well.
Along the change, these are renamed into ArcBackgroundAuthCodeFetcher
and ArcRobotAuthCodeFetchere respectively.
Note that, on error page, there still remains a race issue that
a user can click "TRY AGAIN" button quickly, so that OnRetryClicked()
can be invoked twice (or more) quickly. This problem will be addressed in another CL.
BUG=657687
BUG=b/31079732
TEST=Ran on test device. Ran bots.
Committed: https://crrev.com/f44a3339cce8208c9b308fe95d99bc5faf7fbfc5
Cr-Commit-Position: refs/heads/master@{#436349}
Patch Set 1 #
Total comments: 7
Patch Set 2 : rebase #Patch Set 3 : Address comments #Messages
Total messages: 24 (15 generated)
|