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

Issue 2542773002: UnlockProfileAndHideLoginUI() will be called once the sign in is almost finished. This function wil… (Closed)

Created:
4 years ago by Patrick Monette
Modified:
4 years ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2924
Project:
chromium
Visibility:
Public.

Description

UnlockProfileAndHideLoginUI() will be called once the sign in is almost finished. This function will unlock the profile, hide the UserManager and send the message to javascript to close the "sign-in dialog". UnlockProfileAndHideLoginUI() will be called in two places. The first one is for the second sign-in of one profile when the force-sign-in is disabled. The second one is after the OnClientOAuthSuccess when the force-sign-in is enabled. Theoretically, this function can be called multiple times in one sign-in process. However, the fact is, once it's called by the second time, the javascript message will be sent to the "sync confirm dialog" but not the "sign-in dialog" which will close the "sync confirm dialog" automatically and causes other issue.s The quick fix here is making sure that the function will be called at most once no matter the force-sign-in is enabled or not. BUG=667227 Review-Url: https://codereview.chromium.org/2519123003 Cr-Commit-Position: refs/heads/master@{#434287} (cherry picked from commit ff9fc46a4fdfb7c2975c867d8459e3cebe2e32fb) Committed: https://chromium.googlesource.com/chromium/src/+/fc68fea1f07157b6ef761f348a3daae2e3ed7b2b

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M chrome/browser/ui/webui/signin/inline_login_handler_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 2 (1 generated)
Patrick Monette
4 years ago (2016-11-30 23:49:09 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
fc68fea1f07157b6ef761f348a3daae2e3ed7b2b.

Powered by Google App Engine
This is Rietveld 408576698