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

Issue 22253010: Fix unwanted sign in to Chrome when the user signs in to another service. (Closed)

Created:
7 years, 4 months ago by fdoray
Modified:
7 years, 4 months ago
CC:
chromium-reviews, tim+watch_chromium.org, rsimha+watch_chromium.org, haitaol+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fix 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -4 lines) Patch
M chrome/browser/signin/signin_browsertest.cc View 1 2 3 4 5 8 9 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper.h View 1 2 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper.cc View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -2 lines 1 comment Download
M chrome/browser/ui/sync/one_click_signin_helper_unittest.cc View 1 2 2 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
fdoray
Could you review this CL? Thanks.
7 years, 4 months ago (2013-08-07 21:00:09 UTC) #1
bcwhite
lgtm
7 years, 4 months ago (2013-08-08 13:07:29 UTC) #2
noms
lgtm
7 years, 4 months ago (2013-08-08 13:45:18 UTC) #3
Roger Tawa OOO till Jul 10th
lgtm++
7 years, 4 months ago (2013-08-08 17:17:29 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/22253010/2001
7 years, 4 months ago (2013-08-08 19:44:15 UTC) #5
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=157212
7 years, 4 months ago (2013-08-08 21:26:48 UTC) #6
fdoray
Roger: I had to make small changes in chrome/browser/signin/signin_browsertest.cc and chrome/browser/ui/sync/one_click_signin_helper_unittest.cc because some tests failed. ...
7 years, 4 months ago (2013-08-09 14:32:24 UTC) #7
(NOT FOR CODE REVIEWS)
Thanks for the heads up. A couple of comments below. https://codereview.chromium.org/22253010/diff/47001/chrome/browser/ui/sync/one_click_signin_helper.cc File chrome/browser/ui/sync/one_click_signin_helper.cc (right): https://codereview.chromium.org/22253010/diff/47001/chrome/browser/ui/sync/one_click_signin_helper.cc#newcode1070 ...
7 years, 4 months ago (2013-08-09 14:43:04 UTC) #8
fdoray
Roger, can you review this again? https://codereview.chromium.org/22253010/diff/47001/chrome/browser/ui/sync/one_click_signin_helper.cc File chrome/browser/ui/sync/one_click_signin_helper.cc (right): https://codereview.chromium.org/22253010/diff/47001/chrome/browser/ui/sync/one_click_signin_helper.cc#newcode1070 chrome/browser/ui/sync/one_click_signin_helper.cc:1070: auto_accept_ != AUTO_ACCEPT_NONE) ...
7 years, 4 months ago (2013-08-09 17:42:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/22253010/82002
7 years, 4 months ago (2013-08-09 18:32:03 UTC) #10
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 4 months ago (2013-08-09 22:19:22 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/22253010/82002
7 years, 4 months ago (2013-08-10 01:09:10 UTC) #12
commit-bot: I haz the power
7 years, 4 months ago (2013-08-10 07:17:48 UTC) #13
Message was sent while issue was closed.
Change committed as 216814

Powered by Google App Engine
This is Rietveld 408576698