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

Issue 954373002: [Webapp Refactor] Group authentications fields into remoting.CredentialsProvider. (Closed)

Created:
5 years, 10 months ago by kelvinp
Modified:
5 years, 9 months ago
Reviewers:
garykac, Jamie
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

[Webapp Refactor] Group authentications properties into remoting.CredentialsProvider. Currently, the connect call of the clientPlugin requires a fetchPinCallback, a fetchThirdPartyTokenCallback, an accessCode and a pairingInfo. This fields are passed down all the way from crd_connect.js to the plugin via sessionConnector and clientSession. As a result, each of the intermediary layers has its own member variables to cached those properties This CL creates a new class remoting.CredentialsProvider that represents connection credentials. This also eliminates a set of callbacks and useAsyncPinDialog() on the client plugin interface, which make the credentials negotiation flow between the plugin and the client session less chatty. BUG=462383 Committed: https://crrev.com/a656e72c2ba19305be86a1edf05af5446240bda0 Cr-Commit-Position: refs/heads/master@{#318768}

Patch Set 1 : #

Total comments: 12

Patch Set 2 : Reviewer's feedback #

Patch Set 3 : Remove supports() #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -304 lines) Patch
M remoting/remoting_webapp_files.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/webapp/browser_test/mock_client_plugin.js View 1 3 chunks +3 lines, -17 lines 0 comments Download
M remoting/webapp/crd/js/client_plugin.js View 1 4 chunks +5 lines, -56 lines 0 comments Download
M remoting/webapp/crd/js/client_plugin_impl.js View 1 2 10 chunks +34 lines, -63 lines 0 comments Download
M remoting/webapp/crd/js/client_session.js View 1 5 chunks +9 lines, -89 lines 0 comments Download
A remoting/webapp/crd/js/credentials_provider.js View 1 2 1 chunk +100 lines, -0 lines 1 comment Download
M remoting/webapp/crd/js/identity.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M remoting/webapp/crd/js/session_connector_impl.js View 1 11 chunks +28 lines, -78 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
kelvinp
PTAL
5 years, 10 months ago (2015-02-26 22:29:38 UTC) #3
Jamie
Looks great! Just a few nits. https://codereview.chromium.org/954373002/diff/20001/remoting/webapp/browser_test/mock_client_plugin.js File remoting/webapp/browser_test/mock_client_plugin.js (right): https://codereview.chromium.org/954373002/diff/20001/remoting/webapp/browser_test/mock_client_plugin.js#newcode51 remoting/webapp/browser_test/mock_client_plugin.js:51: function(host, localJid, credentials) ...
5 years, 10 months ago (2015-02-26 23:20:14 UTC) #4
kelvinp
PTAL https://codereview.chromium.org/954373002/diff/20001/remoting/webapp/browser_test/mock_client_plugin.js File remoting/webapp/browser_test/mock_client_plugin.js (right): https://codereview.chromium.org/954373002/diff/20001/remoting/webapp/browser_test/mock_client_plugin.js#newcode51 remoting/webapp/browser_test/mock_client_plugin.js:51: function(host, localJid, credentials) { On 2015/02/26 23:20:14, Jamie ...
5 years, 10 months ago (2015-02-27 01:03:21 UTC) #6
Jamie
https://codereview.chromium.org/954373002/diff/20001/remoting/webapp/crd/js/credentials_provider.js File remoting/webapp/crd/js/credentials_provider.js (right): https://codereview.chromium.org/954373002/diff/20001/remoting/webapp/crd/js/credentials_provider.js#newcode81 remoting/webapp/crd/js/credentials_provider.js:81: return this.accessCode_ || ''; On 2015/02/27 01:03:21, kelvinp wrote: ...
5 years, 9 months ago (2015-02-27 01:53:03 UTC) #7
kelvinp
PTAL https://codereview.chromium.org/954373002/diff/20001/remoting/webapp/crd/js/credentials_provider.js File remoting/webapp/crd/js/credentials_provider.js (right): https://codereview.chromium.org/954373002/diff/20001/remoting/webapp/crd/js/credentials_provider.js#newcode81 remoting/webapp/crd/js/credentials_provider.js:81: return this.accessCode_ || ''; On 2015/02/27 01:53:03, Jamie ...
5 years, 9 months ago (2015-02-27 19:47:40 UTC) #8
Jamie
LGTM :) https://codereview.chromium.org/954373002/diff/80001/remoting/webapp/crd/js/credentials_provider.js File remoting/webapp/crd/js/credentials_provider.js (right): https://codereview.chromium.org/954373002/diff/80001/remoting/webapp/crd/js/credentials_provider.js#newcode46 remoting/webapp/crd/js/credentials_provider.js:46: this.fetchPin_ = (args.accessCode) ? this.getAccessCode_ : args.fetchPin; ...
5 years, 9 months ago (2015-02-28 00:41:12 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/954373002/80001
5 years, 9 months ago (2015-03-02 19:55:13 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:80001)
5 years, 9 months ago (2015-03-02 21:40:55 UTC) #12
commit-bot: I haz the power
5 years, 9 months ago (2015-03-02 21:41:58 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a656e72c2ba19305be86a1edf05af5446240bda0
Cr-Commit-Position: refs/heads/master@{#318768}

Powered by Google App Engine
This is Rietveld 408576698