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

Issue 3024002: Add IssueAuthToken support to the TokenService. (Closed)

Created:
10 years, 5 months ago by chron_chromium.org
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, ben+cc_chromium.org, nkostylev+cc_chromium.org, Raghu Simha, idana, ncarter (slow), tim (not reviewing), Paweł Hajdan Jr., davemoore+watch_chromium.org
Visibility:
Public.

Description

The token service should now support issuing auth tokens. The service will fetch tokens in the background and broadcast notifications after it's done. Move some common constants out into a new file. Modify TestNotificationTracker to support subclassing as it doesn't properly make a deep copy of notifications on the stack. TEST=unit tests included BUG=47093 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=54028

Patch Set 1 #

Patch Set 2 : backup upload #

Patch Set 3 : initial upload #

Patch Set 4 : unit tests #

Patch Set 5 : Fix unit tests #

Patch Set 6 : upload cleanup #

Total comments: 19

Patch Set 7 : Code review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+396 lines, -32 lines) Patch
M chrome/browser/chromeos/login/google_authenticator.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/net/gaia/token_service.h View 1 2 3 4 5 6 1 chunk +76 lines, -11 lines 0 comments Download
M chrome/browser/net/gaia/token_service.cc View 1 2 3 4 5 6 1 chunk +64 lines, -3 lines 0 comments Download
A chrome/browser/net/gaia/token_service_unittest.cc View 3 4 5 1 chunk +169 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_startup_unittest.cc View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/net/gaia/gaia_authenticator2.h View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M chrome/common/net/gaia/gaia_authenticator2.cc View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/common/net/gaia/gaia_authenticator2_unittest.h View 4 chunks +12 lines, -3 lines 0 comments Download
A chrome/common/net/gaia/gaia_constants.h View 3 4 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/common/net/gaia/gaia_constants.cc View 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/common/notification_type.h View 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/common_constants.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/test_notification_tracker.h View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
chron_chromium.org
10 years, 5 months ago (2010-07-26 23:19:46 UTC) #1
tim (not reviewing)
http://codereview.chromium.org/3024002/diff/17001/18004 File chrome/browser/net/gaia/token_service.h (right): http://codereview.chromium.org/3024002/diff/17001/18004#newcode41 chrome/browser/net/gaia/token_service.h:41: TokenRequestFailedDetails() {} why's this needed? http://codereview.chromium.org/3024002/diff/17001/18004#newcode46 chrome/browser/net/gaia/token_service.h:46: const GaiaAuthError& ...
10 years, 4 months ago (2010-07-27 19:12:17 UTC) #2
chron_chromium.org
http://codereview.chromium.org/3024002/diff/17001/18004 File chrome/browser/net/gaia/token_service.h (right): http://codereview.chromium.org/3024002/diff/17001/18004#newcode41 chrome/browser/net/gaia/token_service.h:41: TokenRequestFailedDetails() {} On 2010/07/27 19:12:17, timsteele wrote: > why's ...
10 years, 4 months ago (2010-07-27 20:08:28 UTC) #3
chron
I've filed a bug http://code.google.com/p/chromium/issues/detail?id=50408 to track the unification of the error structs. I'll get ...
10 years, 4 months ago (2010-07-27 20:37:54 UTC) #4
tim (not reviewing)
10 years, 4 months ago (2010-07-27 20:44:36 UTC) #5
in the interest of productivity, LGTM, though please read my comment.  thanks
for filing the bug; I just think the sooner you tackle it the easier it will be.

http://codereview.chromium.org/3024002/diff/17001/18004
File chrome/browser/net/gaia/token_service.h (right):

http://codereview.chromium.org/3024002/diff/17001/18004#newcode46
chrome/browser/net/gaia/token_service.h:46: const GaiaAuthError& error() const {
return error_; }
On 2010/07/27 20:08:28, chron_chromium.org wrote:
> On 2010/07/27 19:12:17, timsteele wrote:
> > Any chance you can switch this to use GoogleServiceAuthError now?  I asked
> > before, but haven't seen the follow up change yet :)  If we could at least
end
> > the divergence, that would be great.
> 
> It's a little bit involved. ChromeOS code has some parsing logic in it that
> depends on reading the response entirely. I really should remove the parsing
> logic from ChromeOS code and have it rely entirely on the error struct, but
> doing so will take some time. For the time being I had de prioritized it in
> favor of getting more functionality in. When we start wiring in the NTP
captcha
> stuff we'll have to do this anyway.
> 
> If you'd prefer, I can prioritize that and do it next before the webdb
> serialization.

I just thought it might help to stop plumbing the struct through, e.g. by making
the notification send the GSAE instead.  I can't see how whatever code is
listening to this notification can have vastly different parsing code since at
the end of the day the two containers really just give you two or three pieces
of POD.

Powered by Google App Engine
This is Rietveld 408576698