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

Issue 11411267: Make sure to display an errors that occur during the chrome sign in process (Closed)

Created:
8 years ago by Roger Tawa OOO till Jul 10th
Modified:
8 years ago
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, akalin, Raghu Simha, estade+watch_chromium.org, haitaol1, tim (not reviewing), pedrosimonetti+watch_chromium.org
Visibility:
Public.

Description

Make sure to display an errors that occur during the chrome sign in process to the user as a bubble on the NTP. BUG=81265 TEST=Gaia related errors, such as incorrect email, password and/or otp are handled by the gaia sign in page itself. These errors are reported just like on any gaia sign in attempt. Errors that occur after sign in, such as an account already connected with another profile, or an account prohibited by policy, and so on are displayed as bubbles on the ntp. Test scenarios that should be considered: - all sign in access points: first run, ntp, wrench menu, settings, and one-click sin in - use account with and without 2-factor enabled - scenarios where you type the correct password and/or otp the first time, incorrect once and correct the second time, incorrect twice and correct the third time. Its important to test with multiple failures in a row before typing the password correctly, but I would't bother past 3 failed attempts followed by a successful attempt - try closing the tab used for the sign in before actually signing in. Or simply navigate to another page and start browsing with it - on the settings page, make sure that the advanced configuration dialog works as expected when signed in. Try it multiple times, changing the options and saving or cancelling - open two windows, and a settings page in each one. Try to sign in with one while clicking on buttons on the other - make sure that one-click behaviour is not changed. That is, it should only be offered once per profile. Also make sure that the four other access points do continue to be offered after having used one-click sign in - make sure that rejected emails wrt one-click sign in do not prohibit that account from signing in with the four other access points - create a second profile and do the same tests. in particular, try to use the same account as the first profile (it should not be allowed) Note that gaia currently does not support sign in for chrome using "re-auth". That is, if you see a sign in page where the email address is already filled in and unchangeable, then this is a re-auth. This will land in gaia soon. How does this affect testing? In the following scenario: - sign in to chrome once (for example, with first run) - go to settings and disconnect the profile - sign in to chrome again (for exaample, from the settings page) In this case, you will see a re-auth screen. To proceed, click the sign out link at the bottom of the form and then sign in again. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171190

Patch Set 1 : More error handling #

Patch Set 2 : Fix up tests #

Patch Set 3 : Fix merge conflict #

Patch Set 4 : Fix ntp bubble #

Total comments: 15

Patch Set 5 : rebased #

Patch Set 6 : Address review comments #

Patch Set 7 : Fix unit tests #

Total comments: 2

Patch Set 8 : Fix comment #

Patch Set 9 : rebased #

Total comments: 2

Patch Set 10 : Fix if statement #

Patch Set 11 : Fix unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+287 lines, -106 lines) Patch
M chrome/browser/password_manager/password_manager_delegate_impl.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/signin/signin_tracker.cc View 1 2 3 4 5 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper.h View 1 2 3 4 5 6 7 4 chunks +25 lines, -3 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper.cc View 1 2 3 4 5 6 7 8 chunks +99 lines, -30 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +126 lines, -49 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_login_handler.cc View 1 2 3 1 chunk +9 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +14 lines, -9 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Roger Tawa OOO till Jul 10th
Hi Tim, Drew, Please take a look. Thanks.
8 years ago (2012-12-03 14:53:44 UTC) #1
Andrew T Wilson (Slow)
https://codereview.chromium.org/11411267/diff/3009/chrome/browser/password_manager/password_manager_delegate_impl.cc File chrome/browser/password_manager/password_manager_delegate_impl.cc (right): https://codereview.chromium.org/11411267/diff/3009/chrome/browser/password_manager/password_manager_delegate_impl.cc#newcode156 chrome/browser/password_manager/password_manager_delegate_impl.cc:156: int error_message_id = 0; I guess we're trying to ...
8 years ago (2012-12-03 14:54:49 UTC) #2
Roger Tawa OOO till Jul 10th
Thanks Drew. Comments addressed, changes uploaded. PTAL. https://codereview.chromium.org/11411267/diff/3009/chrome/browser/password_manager/password_manager_delegate_impl.cc File chrome/browser/password_manager/password_manager_delegate_impl.cc (right): https://codereview.chromium.org/11411267/diff/3009/chrome/browser/password_manager/password_manager_delegate_impl.cc#newcode156 chrome/browser/password_manager/password_manager_delegate_impl.cc:156: int error_message_id ...
8 years ago (2012-12-03 22:26:53 UTC) #3
Andrew T Wilson (Slow)
lgtm with one nit https://chromiumcodereview.appspot.com/11411267/diff/6029/chrome/browser/ui/sync/one_click_signin_helper.h File chrome/browser/ui/sync/one_click_signin_helper.h (right): https://chromiumcodereview.appspot.com/11411267/diff/6029/chrome/browser/ui/sync/one_click_signin_helper.h#newcode75 chrome/browser/ui/sync/one_click_signin_helper.h:75: // Returns an explanation as ...
8 years ago (2012-12-04 11:14:06 UTC) #4
Roger Tawa OOO till Jul 10th
https://codereview.chromium.org/11411267/diff/6029/chrome/browser/ui/sync/one_click_signin_helper.h File chrome/browser/ui/sync/one_click_signin_helper.h (right): https://codereview.chromium.org/11411267/diff/6029/chrome/browser/ui/sync/one_click_signin_helper.h#newcode75 chrome/browser/ui/sync/one_click_signin_helper.h:75: // Returns an explanation as a string resource ID ...
8 years ago (2012-12-04 15:23:25 UTC) #5
Roger Tawa OOO till Jul 10th
Hi guys, Evan: can you do an owner review for the code in webui? Scott: ...
8 years ago (2012-12-04 18:10:55 UTC) #6
Evan Stade
lgtm https://codereview.chromium.org/11411267/diff/12015/chrome/browser/ui/webui/sync_setup_handler.cc File chrome/browser/ui/webui/sync_setup_handler.cc (right): https://codereview.chromium.org/11411267/diff/12015/chrome/browser/ui/webui/sync_setup_handler.cc#newcode856 chrome/browser/ui/webui/sync_setup_handler.cc:856: if (retry_on_signin_failure_) { if {} else {if {} ...
8 years ago (2012-12-04 20:42:31 UTC) #7
Roger Tawa OOO till Jul 10th
Thanks Evan. Changes uploaded. https://codereview.chromium.org/11411267/diff/12015/chrome/browser/ui/webui/sync_setup_handler.cc File chrome/browser/ui/webui/sync_setup_handler.cc (right): https://codereview.chromium.org/11411267/diff/12015/chrome/browser/ui/webui/sync_setup_handler.cc#newcode856 chrome/browser/ui/webui/sync_setup_handler.cc:856: if (retry_on_signin_failure_) { On 2012/12/04 ...
8 years ago (2012-12-04 21:18:36 UTC) #8
jam
lgtm
8 years ago (2012-12-04 21:34:20 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rogerta@chromium.org/11411267/2028
8 years ago (2012-12-04 21:42:39 UTC) #10
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) content_unittests
8 years ago (2012-12-04 22:38:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rogerta@chromium.org/11411267/15001
8 years ago (2012-12-05 02:40:33 UTC) #12
commit-bot: I haz the power
Change committed as 171190
8 years ago (2012-12-05 07:10:21 UTC) #13
fta
On 2012/12/05 07:10:21, I haz the power (commit-bot) wrote: > Change committed as 171190 this ...
8 years ago (2012-12-05 10:42:20 UTC) #14
Roger Tawa OOO till Jul 10th
On 2012/12/05 10:42:20, fta wrote: > On 2012/12/05 07:10:21, I haz the power (commit-bot) wrote: ...
8 years ago (2012-12-05 12:37:39 UTC) #15
Roger Tawa OOO till Jul 10th
8 years ago (2012-12-05 14:39:29 UTC) #16
Message was sent while issue was closed.
On 2012/12/05 12:37:39, Roger Tawa wrote:
> On 2012/12/05 10:42:20, fta wrote:
> > On 2012/12/05 07:10:21, I haz the power (commit-bot) wrote:
> > > Change committed as 171190
> > 
> > this rev now crashes for me in OneClickSigninHelper::ShowInfoBarUIThread()
> while
> > login to gmail/reader in an incognito window.
> > (and I can't comment in the bug, it's private)
> 
> Sorry for the trouble.  I'll take a look.  Did you enable web-based sign in
flow
> in about:flags?

See crash fix in https://codereview.chromium.org/11437014/

Powered by Google App Engine
This is Rietveld 408576698