DescriptionFix unwanted sign in to Chrome when the user signs in to another service.
Unwanted sign in to Chrome occurred when the user signed in to another service (Gmail, crbug.com...) from a tab that previously showed the Chrome sign in flow.
This CL clears the state of the OneClickSigninHelper associated with a web contents when it's detected that the sign in process has been aborted (i.e. a navigation to a page which is not part of the web-based sign in is triggered by something else than the web contents). It's necessary to maintain the state when a navigation to an unknown page is triggered from the web contents in order to support SAML.
TEST=
1.Launch Chrome and create new user ('Welcome to Chrome' page will appear).
2.Type 'crbug.com' in omnibox and hit 'Enter' key. ('Omnibox' of the same tab that showed the Chrome sign in page).
3.Click on the 'Sign in' link of 'crbug.com'
4.Login with valid account credentials.
Expected result: You are not signed in to Chrome and no message related to sync appears.
BUG=269421
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216814
Patch Set 1 #Patch Set 2 : Add reference to bug #Patch Set 3 : Fix tests #Patch Set 4 : Fix tests #Patch Set 5 : Fix tests #Patch Set 6 : Fix tests #
Total comments: 5
Patch Set 7 : Rebase #Patch Set 8 : Change auto_accept_ instead of calling CleanTransientState #Patch Set 9 : Improve comment #Patch Set 10 : Back to patch 7 + style fix #
Total comments: 1
Messages
Total messages: 13 (0 generated)
|