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

Issue 2519123003: Fix issue that closes sync confirm window after second sign-in in one profile. (Closed)

Created:
4 years, 1 month ago by zmin
Modified:
4 years ago
Reviewers:
anthonyvd
CC:
chromium-reviews, msarda
Target Ref:
refs/pending/heads/master
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 Committed: https://crrev.com/ff9fc46a4fdfb7c2975c867d8459e3cebe2e32fb Cr-Commit-Position: refs/heads/master@{#434287}

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: 24 (16 generated)
zmin
Hi anthonyvd@, Can you please review the CL please? Owen
4 years, 1 month ago (2016-11-22 18:17:44 UTC) #3
anthonyvd
Can you expand the description to explain why this fixes the issue? I was under ...
4 years, 1 month ago (2016-11-22 19:52:36 UTC) #7
anthonyvd
+Mihai for real now.
4 years, 1 month ago (2016-11-22 19:52:52 UTC) #8
zmin
On 2016/11/22 19:52:52, anthonyvd wrote: > +Mihai for real now. Description updated.
4 years, 1 month ago (2016-11-22 21:46:45 UTC) #16
anthonyvd
lgtm
4 years ago (2016-11-23 21:03:42 UTC) #17
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/2519123003/1
4 years ago (2016-11-23 21:04:37 UTC) #19
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-11-23 23:52:49 UTC) #22
commit-bot: I haz the power
4 years ago (2016-11-23 23:55:17 UTC) #24
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/ff9fc46a4fdfb7c2975c867d8459e3cebe2e32fb
Cr-Commit-Position: refs/heads/master@{#434287}

Powered by Google App Engine
This is Rietveld 408576698