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

Issue 389017: Implement the gaia captcha state and unlock capability in the sync setup wiza... (Closed)

Created:
11 years, 1 month ago by tim (not reviewing)
Modified:
9 years, 6 months ago
Reviewers:
ncarter (slow)
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org, idana
Visibility:
Public.

Description

Implement the gaia captcha state and unlock capability in the sync setup wizard. BUG=19738 TEST=Get a Google Account into captcha state. Start syncing. You should be presented with a captcha image and textbox to answer the challenge. Doing so correctly shoud unlock your account and proceed with sync setup. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31829

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : Add unittest #

Total comments: 23

Patch Set 6 : reply to comments #

Patch Set 7 : unittest style fix #

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -80 lines) Patch
M chrome/app/resources/locale_settings.grd View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/gtk/sync_setup_wizard_gtk.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/engine/auth_watcher.h View 1 2 3 4 5 2 chunks +11 lines, -7 lines 0 comments Download
M chrome/browser/sync/engine/auth_watcher.cc View 1 2 1 chunk +10 lines, -2 lines 0 comments Download
M chrome/browser/sync/engine/syncapi.h View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/sync/engine/syncapi.cc View 1 2 5 chunks +13 lines, -10 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.h View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/sync/resources/gaia_login.html View 2 3 4 5 6 7 11 chunks +148 lines, -29 lines 0 comments Download
M chrome/browser/sync/sync_setup_flow.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/sync/sync_setup_flow.cc View 4 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/sync/sync_setup_wizard.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/sync_setup_wizard_unittest.cc View 5 6 6 chunks +35 lines, -10 lines 0 comments Download
M chrome/test/live_sync/profile_sync_service_test_harness.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
tim (not reviewing)
I attached a screenshot to the bug, but note it is missing the captcha image. ...
11 years, 1 month ago (2009-11-12 10:15:06 UTC) #1
ncarter (slow)
Looks decent. http://codereview.chromium.org/389017/diff/7001/7009 File chrome/browser/sync/engine/auth_watcher.cc (right): http://codereview.chromium.org/389017/diff/7001/7009#newcode226 Line 226: captcha_token = gaia_->captcha_token(); As far as ...
11 years, 1 month ago (2009-11-12 17:16:45 UTC) #2
tim (not reviewing)
snapshot updated. On 2009/11/12 17:16:45, nick wrote: > Looks decent. > > http://codereview.chromium.org/389017/diff/7001/7009 > File ...
11 years, 1 month ago (2009-11-12 19:34:14 UTC) #3
tim (not reviewing)
snapshot updated http://codereview.chromium.org/389017/diff/7001/7009 File chrome/browser/sync/engine/auth_watcher.cc (right): http://codereview.chromium.org/389017/diff/7001/7009#newcode226 Line 226: captcha_token = gaia_->captcha_token(); On 2009/11/12 17:16:45, ...
11 years, 1 month ago (2009-11-12 19:34:47 UTC) #4
ncarter (slow)
http://codereview.chromium.org/389017/diff/7001/7011 File chrome/browser/sync/sync_setup_flow.cc (right): http://codereview.chromium.org/389017/diff/7001/7011#newcode75 Line 75: std::string username, password, captcha; On 2009/11/12 19:34:48, timsteele ...
11 years, 1 month ago (2009-11-12 21:07:17 UTC) #5
ncarter (slow)
11 years, 1 month ago (2009-11-12 21:14:31 UTC) #6
On 2009/11/12 21:07:17, nick wrote:
> http://codereview.chromium.org/389017/diff/7001/7011
> File chrome/browser/sync/sync_setup_flow.cc (right):
> 
> http://codereview.chromium.org/389017/diff/7001/7011#newcode75
> Line 75: std::string username, password, captcha;
> On 2009/11/12 19:34:48, timsteele wrote:
> > On 2009/11/12 17:16:45, nick wrote:
> > > This tuple is plumbed through many method signatures.  Consider a struct.
> > 
> > I like the suggestion, though I can't decide where to put a struct for those
> > auth params. there are several such 'auth request' structs already in
syncapi,
> > it doesn't really belong in GoogleServiceAuthError because it makes sense to
> > just want to pass a username and password and not be typecasted as "error",
I
> > don't want to put it in PSS because then SBH would have to include it. I
could
> > add a new file, but that feels like overkill. any idea? Also Im considering
> (one
> > of my comment in auth watcher) having a captcha specific API in which case
> such
> > a struct could go in GoogleServiceAuthError (though there is already
> 'Captcha',
> > which would I guess become 'CaptchaChallenge' and 'CaptchaAnswer' or
> something.
> > I could add a todo, im always happy to make little tinkering CLs like that
:)
> 
> Put it in:
> 
> sync/util/sync_types.h
> 
> Adding a captcha specific API seems like overkill.  I prefer the way you've
done
> it.

LGTM.  Please consider adding a struct for the
username/password/captcha_response tuple in a follow-up change.

Powered by Google App Engine
This is Rietveld 408576698