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

Issue 2380203002: cros: Fix API 'add' password and complete auth racing (Closed)

Created:
4 years, 2 months ago by xiyuan
Modified:
4 years, 2 months ago
Reviewers:
achuithb
CC:
chromium-reviews, arv+watch_chromium.org, dcheng
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: Fix API 'add' password and complete auth racing Authenticator.maybeCompleteAuth_ is attempted on webview.loadcommit and webview.request.onCompleted events. Auth is completed when all info is collected. Gaia uses credential passing API to send back the password. This, however, is not bound to the two events. If the two events happen before the 'add' API calls through, auth never gets completed. This CL fixes the racing by adding maybeCompleteAuth_ on the API 'add' call. BUG=650543 TEST=Existing login tests should pass. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/4caa576572fa920a66f1e9449daa9f41ce80b76f Cr-Commit-Position: refs/heads/master@{#422130}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -0 lines) Patch
M chrome/browser/resources/gaia_auth_host/authenticator.js View 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/resources/gaia_auth_host/saml_handler.js View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
xiyuan
4 years, 2 months ago (2016-09-29 22:34:45 UTC) #3
achuithb
lgtm, thanks!
4 years, 2 months ago (2016-09-29 22:36:06 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2380203002/1
4 years, 2 months ago (2016-09-30 16:30:10 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-09-30 16:36:14 UTC) #11
commit-bot: I haz the power
4 years, 2 months ago (2016-09-30 16:38:41 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/4caa576572fa920a66f1e9449daa9f41ce80b76f
Cr-Commit-Position: refs/heads/master@{#422130}

Powered by Google App Engine
This is Rietveld 408576698