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

Issue 2528183002: Fix the bug which is login dialog won't close after the second sign-in to chrome with different acc… (Closed)

Created:
4 years ago by zmin
Modified:
4 years ago
Reviewers:
anthonyvd
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -7 lines) Patch
M chrome/browser/ui/webui/signin/inline_login_handler_impl.cc View 2 chunks +9 lines, -7 lines 1 comment Download

Messages

Total messages: 17 (10 generated)
zmin
4 years ago (2016-11-25 18:29:26 UTC) #3
zmin
Hi Anthony, Can you review this CL please? Owen
4 years ago (2016-11-25 18:48:39 UTC) #6
anthonyvd
lgtm % quick clarification https://codereview.chromium.org/2528183002/diff/1/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc File chrome/browser/ui/webui/signin/inline_login_handler_impl.cc (right): https://codereview.chromium.org/2528183002/diff/1/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc#newcode123 chrome/browser/ui/webui/signin/inline_login_handler_impl.cc:123: if (!profile_path.empty()) { This should ...
4 years ago (2016-11-28 12:36:14 UTC) #9
zmin
On 2016/11/28 12:36:14, anthonyvd wrote: > lgtm % quick clarification > > https://codereview.chromium.org/2528183002/diff/1/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc > File ...
4 years ago (2016-11-28 16:07:20 UTC) #10
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/2528183002/1
4 years ago (2016-11-28 16:07:39 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-11-28 16:48:37 UTC) #15
commit-bot: I haz the power
4 years ago (2016-11-28 16:52:04 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/0233a4c8e8eaa98fd46de68f975286b438751211
Cr-Commit-Position: refs/heads/master@{#434668}

Powered by Google App Engine
This is Rietveld 408576698