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

Issue 10012051: Add a mode to OAuth2MintTokenFlow that fetches the messages to show to the user. (Closed)

Created:
8 years, 8 months ago by Munjal (Google)
Modified:
8 years, 8 months ago
CC:
chromium-reviews, Aaron Boodman, cbentzel+watch_chromium.org, darin-cc_chromium.org, mihaip+watch_chromium.org, sail
Visibility:
Public.

Description

Add a mode to OAuth2MintTokenFlow that fetches the messages to show to the user. Change OAuth2MintTokenFlow to use OAuth2ApiCallFlow. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=132242

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 7

Patch Set 5 : #

Total comments: 11

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+586 lines, -313 lines) Patch
M chrome/browser/extensions/api/identity/identity_api.cc View 1 2 3 4 1 chunk +10 lines, -4 lines 0 comments Download
M chrome/common/net/gaia/oauth2_access_token_fetcher.cc View 2 chunks +1 line, -15 lines 0 comments Download
M chrome/common/net/gaia/oauth2_api_call_flow.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/net/gaia/oauth2_mint_token_flow.h View 1 2 3 4 5 6 7 8 9 2 chunks +98 lines, -80 lines 0 comments Download
M chrome/common/net/gaia/oauth2_mint_token_flow.cc View 1 2 3 4 5 6 7 8 9 3 chunks +182 lines, -81 lines 0 comments Download
M chrome/common/net/gaia/oauth2_mint_token_flow_unittest.cc View 1 2 3 1 chunk +294 lines, -132 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Munjal (Google)
Use the abstract API flow class I added in https://chromiumcodereview.appspot.com/9937004/ to implement token mint API ...
8 years, 8 months ago (2012-04-10 21:04:03 UTC) #1
asargent_no_longer_on_chrome
lgtm https://chromiumcodereview.appspot.com/10012051/diff/10004/chrome/browser/extensions/api/identity/identity_api.cc File chrome/browser/extensions/api/identity/identity_api.cc (right): https://chromiumcodereview.appspot.com/10012051/diff/10004/chrome/browser/extensions/api/identity/identity_api.cc#newcode47 chrome/browser/extensions/api/identity/identity_api.cc:47: new OAuth2MintTokenFlow( nit: this could go on the ...
8 years, 8 months ago (2012-04-10 22:47:25 UTC) #2
Munjal (Google)
Thanks for the quick review. https://chromiumcodereview.appspot.com/10012051/diff/10004/chrome/browser/extensions/api/identity/identity_api.cc File chrome/browser/extensions/api/identity/identity_api.cc (right): https://chromiumcodereview.appspot.com/10012051/diff/10004/chrome/browser/extensions/api/identity/identity_api.cc#newcode47 chrome/browser/extensions/api/identity/identity_api.cc:47: new OAuth2MintTokenFlow( On 2012/04/10 ...
8 years, 8 months ago (2012-04-10 23:15:35 UTC) #3
jstritar
This will be really useful! What do you all think of the class's name now? ...
8 years, 8 months ago (2012-04-11 19:14:24 UTC) #4
Munjal (Google)
http://codereview.chromium.org/10012051/diff/11006/chrome/common/net/gaia/oauth2_mint_token_flow.cc File chrome/common/net/gaia/oauth2_mint_token_flow.cc (right): http://codereview.chromium.org/10012051/diff/11006/chrome/common/net/gaia/oauth2_mint_token_flow.cc#newcode207 chrome/common/net/gaia/oauth2_mint_token_flow.cc:207: base::JSONReader reader; On 2012/04/11 19:14:29, jstritar wrote: > Do ...
8 years, 8 months ago (2012-04-11 19:37:55 UTC) #5
Munjal (Google)
I forgot to address your top level comment about naming. I think a better name ...
8 years, 8 months ago (2012-04-11 19:38:53 UTC) #6
jstritar
LGTM, and the name you suggested sounds good to me.
8 years, 8 months ago (2012-04-11 19:43:47 UTC) #7
Munjal (Google)
I was just thinking... OAuth2IssueTokenFlow and OAuth2MintTokenFlow are so similar that the effort of renaming ...
8 years, 8 months ago (2012-04-11 21:38:52 UTC) #8
msw
8 years, 8 months ago (2012-04-11 21:47:55 UTC) #9
On 2012/04/11 21:38:52, munjal wrote:
> I was just thinking... OAuth2IssueTokenFlow and OAuth2MintTokenFlow are so
> similar that the effort of renaming it may not be worth it. "mint" is as
> commonly used a verb as "issue".

Drive-by opinion: I'm ignorant here, but I had no idea that "mint" was a verb or
what it meant when I first saw such classes... The meaning and use of the
classes was almost lost on me until sail@ explicitly pointed me to them. I would
prefer naming consistency with the IssueToken operation.

Powered by Google App Engine
This is Rietveld 408576698