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

Issue 1020743002: [Chromoting] Move app-specific code out of remoting.js (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 app-specific code out of remoting.js After this cl, the last remaining reference to remoting.AppMode in AppRemoting is in app_remoting.js. That will be addressed in a followup cl. Move the following out of remoting.js and into app-specific locations: * remoting.signOut (into crd_event_handlers.js) * remoting.showErrorMessage (into desktop_remoting.js) * isWindowed_ (into desktop_remoting.js) * remoting.promptClose (into desktop_remoting.js) * remoting.isMe2MeInstallable (into local_host_section.js) Rename Delegate.signInFailed -> Delegate.handleAuthError Add Application.onAuthError to call Delegate.handleAuthError Change references to global remoting.showErrorMessage to remoting.app.onAuthError BUG= Committed: https://crrev.com/a59c430f5028228e62f780b2e129e93a4cb72843 Cr-Commit-Position: refs/heads/master@{#321502}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Add onError for HostSetupDialog #

Patch Set 3 : review comments; sync; merge #

Patch Set 4 : Update sessionConnector check #

Total comments: 2

Patch Set 5 : Make isMe2MeInstallable private #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -113 lines) Patch
M remoting/webapp/crd/js/crd_event_handlers.js View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M remoting/webapp/crd/js/crd_main.js View 1 2 2 chunks +19 lines, -1 line 0 comments Download
M remoting/webapp/crd/js/desktop_remoting.js View 1 2 3 4 chunks +54 lines, -3 lines 0 comments Download
M remoting/webapp/crd/js/host_list.js View 1 6 chunks +10 lines, -5 lines 0 comments Download
M remoting/webapp/crd/js/host_setup_dialog.js View 1 2 chunks +7 lines, -3 lines 0 comments Download
M remoting/webapp/crd/js/local_host_section.js View 1 2 3 4 2 chunks +19 lines, -1 line 0 comments Download
M remoting/webapp/crd/js/remoting.js View 1 2 3 chunks +0 lines, -100 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
garykac
https://codereview.chromium.org/1020743002/diff/1/remoting/webapp/crd/js/crd_event_handlers.js File remoting/webapp/crd/js/crd_event_handlers.js (right): https://codereview.chromium.org/1020743002/diff/1/remoting/webapp/crd/js/crd_event_handlers.js#newcode95 remoting/webapp/crd/js/crd_event_handlers.js:95: remoting.signOut = function() { moved here from remoting.js. It ...
5 years, 9 months ago (2015-03-19 01:03:44 UTC) #1
garykac
5 years, 9 months ago (2015-03-19 01:03:54 UTC) #3
garykac
Please see comments in Patchset #1
5 years, 9 months ago (2015-03-19 01:04:24 UTC) #4
kelvinp
Thank you for the cleanup. I like the general idea. The only outstanding feedback is ...
5 years, 9 months ago (2015-03-19 17:50:20 UTC) #5
garykac
ptal https://codereview.chromium.org/1020743002/diff/1/remoting/webapp/crd/js/crd_main.js File remoting/webapp/crd/js/crd_main.js (right): https://codereview.chromium.org/1020743002/diff/1/remoting/webapp/crd/js/crd_main.js#newcode21 remoting/webapp/crd/js/crd_main.js:21: remoting.app.onAuthError.bind(remoting.app)); On 2015/03/19 17:50:20, kelvinp wrote: > This ...
5 years, 9 months ago (2015-03-19 21:58:38 UTC) #6
kelvinp
lgtm with Nits https://codereview.chromium.org/1020743002/diff/60001/remoting/webapp/crd/js/local_host_section.js File remoting/webapp/crd/js/local_host_section.js (right): https://codereview.chromium.org/1020743002/diff/60001/remoting/webapp/crd/js/local_host_section.js#newcode116 remoting/webapp/crd/js/local_host_section.js:116: * @return {boolean} Make private please.
5 years, 9 months ago (2015-03-19 23:25:20 UTC) #7
garykac
https://codereview.chromium.org/1020743002/diff/60001/remoting/webapp/crd/js/local_host_section.js File remoting/webapp/crd/js/local_host_section.js (right): https://codereview.chromium.org/1020743002/diff/60001/remoting/webapp/crd/js/local_host_section.js#newcode116 remoting/webapp/crd/js/local_host_section.js:116: * @return {boolean} On 2015/03/19 23:25:20, kelvinp wrote: > ...
5 years, 9 months ago (2015-03-19 23:49:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1020743002/80001
5 years, 9 months ago (2015-03-19 23:49:56 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 9 months ago (2015-03-20 02:31:51 UTC) #12
commit-bot: I haz the power
5 years, 9 months ago (2015-03-20 02:32:34 UTC) #13
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a59c430f5028228e62f780b2e129e93a4cb72843
Cr-Commit-Position: refs/heads/master@{#321502}

Powered by Google App Engine
This is Rietveld 408576698