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

Issue 2543843002: 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 Patrick Monette
Modified:
4 years ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2924
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 Review-Url: https://codereview.chromium.org/2528183002 Cr-Commit-Position: refs/heads/master@{#434668} (cherry picked from commit 0233a4c8e8eaa98fd46de68f975286b438751211) Committed: https://chromium.googlesource.com/chromium/src/+/6500dfd08d8152e3d4ea0207d17b0111291489f1

Patch Set 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 0 comments Download

Messages

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

Powered by Google App Engine
This is Rietveld 408576698