Chromium Code Reviews
DescriptionFix the bug which is login dialog won't close after the second sign-in to chrome with different account on the same profile.
This is the follow up of CLs:
1) https://chromium.googlesource.com/chromium/src/+/ff9fc46a4fdfb7c2975c867d8459e3cebe2e32fb
and
2) https://chromium.googlesource.com/chromium/src/+/5db87096a32b73bd2aaca04710152de495ba50ea
The javascript message that close sign in dialog will be sent regardless before. However, after the refactor in the second CL above, it's only sent once the profile_path is not empty. It didn't cause any issue because the JS message will be sent again in the OnClientOAuthSuccess()
However, the OnClientOAuthSuccess' JS message will only be sent while force sign in is enabled after the first CL landed which is used to solve crbug.com/667227. It means that if the profile_path is empty (second sign in with different account in the same profile), the sign in dialog will never be closed.
Moving the profile_path empty check into UnlockProfileAndHideLoginUI() so that the javascript message will be sent no matter the profile_path is empty or not.
BUG=668619
Committed: https://crrev.com/0233a4c8e8eaa98fd46de68f975286b438751211
Cr-Commit-Position: refs/heads/master@{#434668}
Patch Set 1 #
Total comments: 1
Messages
Total messages: 17 (10 generated)
|
|||||||||||||||||||