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

Issue 981083002: [Chromoting] Move ownership of ClientPlugin into SessionConnector. (Closed)

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

[Chromoting] Move ownership of ClientPlugin into SessionConnector. With this cl, ClientSession and DesktopConnectedView are now created (and owned) by the SessionConnector. SessionConnector creates the ClientPlugin and passes it to the CS and DCW. BUG= Committed: https://crrev.com/f21919fda8381c6c3f8585210446c2583c9cca86 Cr-Commit-Position: refs/heads/master@{#319636}

Patch Set 1 #

Patch Set 2 : Remove createPluginAndConnect #

Total comments: 10

Patch Set 3 : #

Total comments: 30

Patch Set 4 : Create ClientSession after plugin is created #

Total comments: 4

Patch Set 5 : Add null checks and combine reset #

Patch Set 6 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -168 lines) Patch
M remoting/webapp/base/js/application.js View 1 2 3 4 5 2 chunks +0 lines, -14 lines 0 comments Download
M remoting/webapp/browser_test/mock_session_connector.js View 1 1 chunk +0 lines, -1 line 0 comments Download
M remoting/webapp/crd/js/client_session.js View 1 2 3 4 11 chunks +27 lines, -84 lines 0 comments Download
M remoting/webapp/crd/js/desktop_connected_view.js View 1 2 3 4 6 chunks +8 lines, -49 lines 0 comments Download
M remoting/webapp/crd/js/session_connector.js View 1 2 3 4 5 1 chunk +0 lines, -6 lines 0 comments Download
M remoting/webapp/crd/js/session_connector_impl.js View 1 2 3 4 5 4 chunks +101 lines, -14 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
garykac
https://codereview.chromium.org/981083002/diff/20001/remoting/webapp/base/js/application.js File remoting/webapp/base/js/application.js (left): https://codereview.chromium.org/981083002/diff/20001/remoting/webapp/base/js/application.js#oldcode127 remoting/webapp/base/js/application.js:127: remoting.clientSession = clientSession; This global is managed in SessionConnector. ...
5 years, 9 months ago (2015-03-06 00:45:05 UTC) #2
kelvinp
https://codereview.chromium.org/981083002/diff/40001/remoting/webapp/base/js/application.js File remoting/webapp/base/js/application.js (left): https://codereview.chromium.org/981083002/diff/40001/remoting/webapp/base/js/application.js#oldcode20 remoting/webapp/base/js/application.js:20: remoting.clientSession = null; Please also moves it to sessionConnector, ...
5 years, 9 months ago (2015-03-06 02:58:38 UTC) #3
garykac
ptal https://codereview.chromium.org/981083002/diff/40001/remoting/webapp/base/js/application.js File remoting/webapp/base/js/application.js (left): https://codereview.chromium.org/981083002/diff/40001/remoting/webapp/base/js/application.js#oldcode20 remoting/webapp/base/js/application.js:20: remoting.clientSession = null; On 2015/03/06 02:58:37, kelvinp wrote: ...
5 years, 9 months ago (2015-03-06 23:38:34 UTC) #4
kelvinp
Mostly look good, just one comment about null checking the clientSession in removePlugin. https://codereview.chromium.org/981083002/diff/60001/remoting/webapp/crd/js/client_session.js File ...
5 years, 9 months ago (2015-03-07 00:09:28 UTC) #5
garykac
https://codereview.chromium.org/981083002/diff/60001/remoting/webapp/crd/js/client_session.js File remoting/webapp/crd/js/client_session.js (right): https://codereview.chromium.org/981083002/diff/60001/remoting/webapp/crd/js/client_session.js#newcode43 remoting/webapp/crd/js/client_session.js:43: remoting.ClientSession = function(plugin, host, signalStrategy, mode) { On 2015/03/07 ...
5 years, 9 months ago (2015-03-07 01:53:10 UTC) #6
kelvinp
lgtm
5 years, 9 months ago (2015-03-07 08:19:41 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/981083002/100001
5 years, 9 months ago (2015-03-09 14:55:56 UTC) #10
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 9 months ago (2015-03-09 15:34:50 UTC) #11
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/f21919fda8381c6c3f8585210446c2583c9cca86 Cr-Commit-Position: refs/heads/master@{#319636}
5 years, 9 months ago (2015-03-09 15:35:24 UTC) #12
Wez
5 years, 9 months ago (2015-03-09 17:33:21 UTC) #13
Message was sent while issue was closed.
Sorry, only just spotted this.

Please add the # for the bug that describes the rationale for this change, and
update the CL description to explain why SessionConnector should own
ClientPlugin.

Powered by Google App Engine
This is Rietveld 408576698