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

Issue 981723003: Add application pre-authorization. (Closed)

Created:
5 years, 9 months ago by Jamie
Modified:
5 years, 9 months ago
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Currently, any invocation of getToken() may result in consent UI being shown, which makes it hard to predict what UI changes may result when a token is requested. This CL simplifies the flow: * Pre-authorize the app before calling the start() method. * Only that first authorization will result in any in-app UI being shown. * Subsequent calls to getToken() may cause the chrome.identity consent UI to be shown, but this should only happen in exceptional circumstances and since no DOM changes are involved, it's a more predictable flow. Committed: https://crrev.com/fc25fc74bd0ba18099ce64a21d3daaa657f5967b Cr-Commit-Position: refs/heads/master@{#319536}

Patch Set 1 #

Total comments: 20
Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -105 lines) Patch
M remoting/webapp/app_remoting/js/app_remoting.js View 3 chunks +38 lines, -39 lines 9 comments Download
M remoting/webapp/base/js/application.js View 5 chunks +34 lines, -11 lines 0 comments Download
M remoting/webapp/base/js/auth_init.js View 2 chunks +4 lines, -23 lines 1 comment Download
M remoting/webapp/crd/js/desktop_remoting.js View 2 chunks +32 lines, -18 lines 6 comments Download
M remoting/webapp/crd/js/identity.js View 7 chunks +22 lines, -14 lines 4 comments Download

Messages

Total messages: 13 (2 generated)
Jamie
garykac: PTAL courage: Please give an opinion on how I'm detecting cancel vs. error. kelvinp: ...
5 years, 9 months ago (2015-03-05 01:35:56 UTC) #2
Michael Courage
https://codereview.chromium.org/981723003/diff/1/remoting/webapp/crd/js/identity.js File remoting/webapp/crd/js/identity.js (right): https://codereview.chromium.org/981723003/diff/1/remoting/webapp/crd/js/identity.js#newcode191 remoting/webapp/crd/js/identity.js:191: remoting.Error.CANCELLED : remoting.Error.NOT_AUTHENTICATED; On 2015/03/05 01:35:56, Jamie wrote: > ...
5 years, 9 months ago (2015-03-05 01:43:55 UTC) #3
kelvinp
https://codereview.chromium.org/981723003/diff/1/remoting/webapp/app_remoting/js/app_remoting.js File remoting/webapp/app_remoting/js/app_remoting.js (right): https://codereview.chromium.org/981723003/diff/1/remoting/webapp/app_remoting/js/app_remoting.js#newcode115 remoting/webapp/app_remoting/js/app_remoting.js:115: remoting.AppRemoting.prototype.start = function(connector, token) { onAuthenticated or onInitialized would ...
5 years, 9 months ago (2015-03-05 02:12:14 UTC) #4
Jamie
https://codereview.chromium.org/981723003/diff/1/remoting/webapp/app_remoting/js/app_remoting.js File remoting/webapp/app_remoting/js/app_remoting.js (right): https://codereview.chromium.org/981723003/diff/1/remoting/webapp/app_remoting/js/app_remoting.js#newcode115 remoting/webapp/app_remoting/js/app_remoting.js:115: remoting.AppRemoting.prototype.start = function(connector, token) { On 2015/03/05 02:12:14, kelvinp ...
5 years, 9 months ago (2015-03-05 02:31:27 UTC) #5
garykac
https://codereview.chromium.org/981723003/diff/1/remoting/webapp/app_remoting/js/app_remoting.js File remoting/webapp/app_remoting/js/app_remoting.js (right): https://codereview.chromium.org/981723003/diff/1/remoting/webapp/app_remoting/js/app_remoting.js#newcode200 remoting/webapp/app_remoting/js/app_remoting.js:200: chrome.app.window.current().close(); We also call this in onDisconnected, but it ...
5 years, 9 months ago (2015-03-05 02:38:26 UTC) #6
Jamie
https://codereview.chromium.org/981723003/diff/1/remoting/webapp/app_remoting/js/app_remoting.js File remoting/webapp/app_remoting/js/app_remoting.js (right): https://codereview.chromium.org/981723003/diff/1/remoting/webapp/app_remoting/js/app_remoting.js#newcode200 remoting/webapp/app_remoting/js/app_remoting.js:200: chrome.app.window.current().close(); On 2015/03/05 02:38:25, garykac wrote: > We also ...
5 years, 9 months ago (2015-03-05 19:01:37 UTC) #7
Jamie
Ping
5 years, 9 months ago (2015-03-06 20:45:23 UTC) #8
garykac
lgtm https://codereview.chromium.org/981723003/diff/1/remoting/webapp/app_remoting/js/app_remoting.js File remoting/webapp/app_remoting/js/app_remoting.js (right): https://codereview.chromium.org/981723003/diff/1/remoting/webapp/app_remoting/js/app_remoting.js#newcode200 remoting/webapp/app_remoting/js/app_remoting.js:200: chrome.app.window.current().close(); On 2015/03/05 19:01:36, Jamie wrote: > On ...
5 years, 9 months ago (2015-03-06 21:16:25 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/981723003/1
5 years, 9 months ago (2015-03-06 21:30:26 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 9 months ago (2015-03-07 00:19:13 UTC) #12
commit-bot: I haz the power
5 years, 9 months ago (2015-03-07 00:19:57 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/fc25fc74bd0ba18099ce64a21d3daaa657f5967b
Cr-Commit-Position: refs/heads/master@{#319536}

Powered by Google App Engine
This is Rietveld 408576698