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

Issue 11769002: Apps v2 identity integration. (Closed)

Created:
7 years, 11 months ago by Jamie
Modified:
7 years, 11 months ago
Reviewers:
rmsousa, Wez
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Apps v2 identity integration. This CL adds support for Chrome's identity API, part of the Apps v2 migration effort: * Add identity.js, wrapping chrome.experimental.identity and handling user consent UI automatically. * Since the consent UI is now shown on-demand, it's better handled as an explicit overlay rather than as a AppMode, so remove home.auth. * Move access token and email address functionality out of oauth2.js into identiry.js. * Add stub code to simplify the transition to using the new code. BUG=134213 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175930

Patch Set 1 #

Patch Set 2 : Removed identity.js from html. Fixed patch. #

Total comments: 27

Patch Set 3 : Removed patch. #

Patch Set 4 : Reviewer comments. #

Total comments: 16

Patch Set 5 : Added TODOs #

Patch Set 6 : Reviewer comments. #

Patch Set 7 : Rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+317 lines, -55 lines) Patch
A + remoting/webapp/background.js View 1 chunk +1 line, -1 line 0 comments Download
M remoting/webapp/client_screen.js View 1 chunk +1 line, -1 line 0 comments Download
M remoting/webapp/event_handlers.js View 1 chunk +1 line, -1 line 0 comments Download
M remoting/webapp/host_controller.js View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/webapp/host_list.js View 3 chunks +3 lines, -3 lines 0 comments Download
M remoting/webapp/host_screen.js View 2 chunks +3 lines, -3 lines 0 comments Download
M remoting/webapp/host_setup_dialog.js View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
A remoting/webapp/identity.js View 1 2 3 4 5 1 chunk +195 lines, -0 lines 1 comment Download
M remoting/webapp/jscompiler_hacks.js View 1 2 3 4 5 6 1 chunk +40 lines, -1 line 0 comments Download
M remoting/webapp/main.css View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/webapp/main.html View 1 2 chunks +25 lines, -20 lines 0 comments Download
M remoting/webapp/oauth2.js View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M remoting/webapp/remoting.js View 1 2 3 4 5 5 chunks +34 lines, -16 lines 0 comments Download
M remoting/webapp/storage.js View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M remoting/webapp/ui_mode.js View 1 chunk +0 lines, -1 line 0 comments Download
M remoting/webapp/wcs.js View 1 chunk +1 line, -1 line 0 comments Download
M remoting/webapp/wcs_loader.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
Jamie
ptal
7 years, 11 months ago (2013-01-04 02:17:45 UTC) #1
rmsousa
On 2013/01/04 02:17:45, Jamie wrote: > ptal Drive-by suggestion: Could you apply the patch, upload ...
7 years, 11 months ago (2013-01-04 02:44:33 UTC) #2
Jamie
On 2013/01/04 02:44:33, rmsousa wrote: > On 2013/01/04 02:17:45, Jamie wrote: > > ptal > ...
7 years, 11 months ago (2013-01-04 18:19:56 UTC) #3
Wez
I think it'd be cleaner to keep the Apps v2 patch separate, and perhaps upload ...
7 years, 11 months ago (2013-01-04 21:09:41 UTC) #4
Jamie
On 2013/01/04 21:09:41, Wez wrote: > I think it'd be cleaner to keep the Apps ...
7 years, 11 months ago (2013-01-04 21:27:47 UTC) #5
Wez
https://codereview.chromium.org/11769002/diff/2001/remoting/webapp/host_screen.js File remoting/webapp/host_screen.js (right): https://codereview.chromium.org/11769002/diff/2001/remoting/webapp/host_screen.js#newcode48 remoting/webapp/host_screen.js:48: /** @type {string} */(remoting.identity.getCachedEmail()), nit: Do we still need ...
7 years, 11 months ago (2013-01-05 00:04:24 UTC) #6
Jamie
ptal https://codereview.chromium.org/11769002/diff/2001/remoting/webapp/host_screen.js File remoting/webapp/host_screen.js (right): https://codereview.chromium.org/11769002/diff/2001/remoting/webapp/host_screen.js#newcode48 remoting/webapp/host_screen.js:48: /** @type {string} */(remoting.identity.getCachedEmail()), On 2013/01/05 00:04:24, Wez ...
7 years, 11 months ago (2013-01-05 01:32:54 UTC) #7
rmsousa
https://codereview.chromium.org/11769002/diff/2001/remoting/webapp/remoting.js File remoting/webapp/remoting.js (right): https://codereview.chromium.org/11769002/diff/2001/remoting/webapp/remoting.js#newcode122 remoting/webapp/remoting.js:122: if (!remoting.oauth2.isAuthenticated()) { On 2013/01/05 01:32:54, Jamie wrote: > ...
7 years, 11 months ago (2013-01-05 05:21:11 UTC) #8
Jamie
https://codereview.chromium.org/11769002/diff/2001/remoting/webapp/remoting.js File remoting/webapp/remoting.js (right): https://codereview.chromium.org/11769002/diff/2001/remoting/webapp/remoting.js#newcode122 remoting/webapp/remoting.js:122: if (!remoting.oauth2.isAuthenticated()) { On 2013/01/05 05:21:11, rmsousa wrote: > ...
7 years, 11 months ago (2013-01-07 23:52:20 UTC) #9
Wez
https://codereview.chromium.org/11769002/diff/2001/remoting/webapp/identity.js File remoting/webapp/identity.js (right): https://codereview.chromium.org/11769002/diff/2001/remoting/webapp/identity.js#newcode92 remoting/webapp/identity.js:92: // TODO(ajwong): Update to new v2 API. On 2013/01/05 ...
7 years, 11 months ago (2013-01-07 23:52:44 UTC) #10
Wez
https://codereview.chromium.org/11769002/diff/11002/remoting/webapp/identity.js File remoting/webapp/identity.js (right): https://codereview.chromium.org/11769002/diff/11002/remoting/webapp/identity.js#newcode66 remoting/webapp/identity.js:66: /** @type {remoting.Identity} */ On 2013/01/07 23:52:20, Jamie wrote: ...
7 years, 11 months ago (2013-01-07 23:54:20 UTC) #11
Jamie
On 2013/01/07 23:54:20, Wez wrote: > https://codereview.chromium.org/11769002/diff/11002/remoting/webapp/identity.js > File remoting/webapp/identity.js (right): > > https://codereview.chromium.org/11769002/diff/11002/remoting/webapp/identity.js#newcode66 > ...
7 years, 11 months ago (2013-01-08 00:01:12 UTC) #12
Wez
On 2013/01/08 00:01:12, Jamie wrote: > On 2013/01/07 23:54:20, Wez wrote: > > > https://codereview.chromium.org/11769002/diff/11002/remoting/webapp/identity.js ...
7 years, 11 months ago (2013-01-08 02:37:27 UTC) #13
Wez
On 2013/01/07 23:52:44, Wez wrote: > https://codereview.chromium.org/11769002/diff/2001/remoting/webapp/identity.js > File remoting/webapp/identity.js (right): > > https://codereview.chromium.org/11769002/diff/2001/remoting/webapp/identity.js#newcode92 > ...
7 years, 11 months ago (2013-01-08 18:35:37 UTC) #14
Jamie
ptal https://codereview.chromium.org/11769002/diff/2001/remoting/webapp/identity.js File remoting/webapp/identity.js (right): https://codereview.chromium.org/11769002/diff/2001/remoting/webapp/identity.js#newcode92 remoting/webapp/identity.js:92: // TODO(ajwong): Update to new v2 API. On ...
7 years, 11 months ago (2013-01-08 22:09:10 UTC) #15
Wez
7 years, 11 months ago (2013-01-09 23:47:24 UTC) #16
lgtm

https://chromiumcodereview.appspot.com/11769002/diff/13002/remoting/webapp/id...
File remoting/webapp/identity.js (right):

https://chromiumcodereview.appspot.com/11769002/diff/13002/remoting/webapp/id...
remoting/webapp/identity.js:43: * getAuthToken starts doing so itself.
Can you create a bug for resolving this one way or the other?

Powered by Google App Engine
This is Rietveld 408576698