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

Issue 10701041: implement sign in dialog (Closed)

Created:
8 years, 5 months ago by Munjal (Google)
Modified:
8 years, 5 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, James Hawkins, Evan Stade
Visibility:
Public.

Description

Show login dialog in a popup if the user is not signed in and getAuthToken API is called. Plumb interactive flag appropriately. Add tests for various possible paths get auth token API can take. BUG=131235, 124493 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148017

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 10

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 11

Patch Set 8 : #

Patch Set 9 : #

Total comments: 6

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+547 lines, -57 lines) Patch
M chrome/browser/extensions/api/identity/identity_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +44 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +123 lines, -27 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +358 lines, -27 lines 0 comments Download
M chrome/browser/extensions/extension_function_test_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/oauth2/manifest.json View 1 2 3 4 5 6 7 8 9 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/oauth2/test.js View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Munjal (Google)
James, this is the patch that uses the observers I added to LoginUIService.
8 years, 5 months ago (2012-07-11 21:15:13 UTC) #1
Mihai Parparita -not on Chrome
This fixes https://code.google.com/p/chromium/issues/detail?id=131235, right? Can you add it to the CL description. It seems like ...
8 years, 5 months ago (2012-07-12 00:39:21 UTC) #2
Mihai Parparita -not on Chrome
+Evan, since he's looked at identity API stuff recently too.
8 years, 5 months ago (2012-07-12 00:39:44 UTC) #3
Munjal (Google)
I am working on adding tests. Replied to all other comments. I also added bug ...
8 years, 5 months ago (2012-07-12 18:41:56 UTC) #4
Mihai Parparita -not on Chrome
https://chromiumcodereview.appspot.com/10701041/diff/8001/chrome/browser/extensions/api/identity/identity_api.cc File chrome/browser/extensions/api/identity/identity_api.cc (right): https://chromiumcodereview.appspot.com/10701041/diff/8001/chrome/browser/extensions/api/identity/identity_api.cc#newcode59 chrome/browser/extensions/api/identity/identity_api.cc:59: if (StartFlow(GetTokenFlowMode())) { On 2012/07/12 18:41:56, munjal wrote: > ...
8 years, 5 months ago (2012-07-12 23:31:32 UTC) #5
Evan Stade
just style nits, otherwise lgtm https://chromiumcodereview.appspot.com/10701041/diff/13002/chrome/browser/extensions/api/identity/identity_api.cc File chrome/browser/extensions/api/identity/identity_api.cc (right): https://chromiumcodereview.appspot.com/10701041/diff/13002/chrome/browser/extensions/api/identity/identity_api.cc#newcode192 chrome/browser/extensions/api/identity/identity_api.cc:192: OAuth2MintTokenFlow::MODE_MINT_TOKEN_FORCE : this indent ...
8 years, 5 months ago (2012-07-13 08:57:33 UTC) #6
Munjal (Google)
Okay, finally added tests for all code paths that get auth token can take. It ...
8 years, 5 months ago (2012-07-16 20:13:27 UTC) #7
Mihai Parparita -not on Chrome
https://chromiumcodereview.appspot.com/10701041/diff/19002/chrome/browser/extensions/api/identity/identity_api.cc File chrome/browser/extensions/api/identity/identity_api.cc (right): https://chromiumcodereview.appspot.com/10701041/diff/19002/chrome/browser/extensions/api/identity/identity_api.cc#newcode185 chrome/browser/extensions/api/identity/identity_api.cc:185: return GetExtension()->id(); You can override the Extension instance used ...
8 years, 5 months ago (2012-07-17 01:01:00 UTC) #8
Munjal (Google)
Addressed all comments. Please take another look. https://chromiumcodereview.appspot.com/10701041/diff/19002/chrome/browser/extensions/api/identity/identity_api.cc File chrome/browser/extensions/api/identity/identity_api.cc (right): https://chromiumcodereview.appspot.com/10701041/diff/19002/chrome/browser/extensions/api/identity/identity_api.cc#newcode185 chrome/browser/extensions/api/identity/identity_api.cc:185: return GetExtension()->id(); ...
8 years, 5 months ago (2012-07-19 22:35:41 UTC) #9
Mihai Parparita -not on Chrome
https://chromiumcodereview.appspot.com/10701041/diff/19002/chrome/browser/extensions/api/identity/identity_api.h File chrome/browser/extensions/api/identity/identity_api.h (right): https://chromiumcodereview.appspot.com/10701041/diff/19002/chrome/browser/extensions/api/identity/identity_api.h#newcode34 chrome/browser/extensions/api/identity/identity_api.h:34: static const char kInvalidClientId[]; On 2012/07/19 22:35:42, munjal wrote: ...
8 years, 5 months ago (2012-07-20 18:02:32 UTC) #10
Munjal (Google)
https://chromiumcodereview.appspot.com/10701041/diff/19002/chrome/browser/extensions/api/identity/identity_api.h File chrome/browser/extensions/api/identity/identity_api.h (right): https://chromiumcodereview.appspot.com/10701041/diff/19002/chrome/browser/extensions/api/identity/identity_api.h#newcode34 chrome/browser/extensions/api/identity/identity_api.h:34: static const char kInvalidClientId[]; On 2012/07/20 18:02:32, Mihai Parparita ...
8 years, 5 months ago (2012-07-20 18:54:14 UTC) #11
Mihai Parparita -not on Chrome
LGTM
8 years, 5 months ago (2012-07-23 17:53:30 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/munjal@chromium.org/10701041/33003
8 years, 5 months ago (2012-07-23 18:03:15 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/munjal@chromium.org/10701041/41003
8 years, 5 months ago (2012-07-23 18:55:39 UTC) #14
commit-bot: I haz the power
Try job failure for 10701041-41003 (retry) (retry) on mac_rel for step "compile" (clobber build). It's ...
8 years, 5 months ago (2012-07-23 19:40:51 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/munjal@chromium.org/10701041/36013
8 years, 5 months ago (2012-07-23 23:47:16 UTC) #16
commit-bot: I haz the power
8 years, 5 months ago (2012-07-24 01:12:27 UTC) #17
Change committed as 148017

Powered by Google App Engine
This is Rietveld 408576698