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

Issue 1358173005: Refactor HostSettings class. (Closed)

Created:
5 years, 3 months ago by Jamie
Modified:
5 years, 2 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

Refactor HostSettings class. There are four main changes: * Rename HostSettings to HostOptions (since the functionality it provides was previously provided by Host.Options). * Make all fields optional. This was in response to a comment on https://codereview.chromium.org/1343503002/ that using an empty set of remappings to represent the default doesn't make much sense. I extended it to apply to all settings. * Move the default key remapping logic into getRemapKeys(). * Move the string->dictionary key remapping logic into setRemapKeys(). Committed: https://crrev.com/5816f58abd0d2b08d118924ed9240195a0a23716 Cr-Commit-Position: refs/heads/master@{#350886}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Use base.copyWithoutNullFields. #

Patch Set 3 : Fix indent. #

Patch Set 4 : Separate [copy|merge]WithoutNullFields #

Total comments: 1

Patch Set 5 : Rebase #

Patch Set 6 : Fix unit tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+406 lines, -237 lines) Patch
M remoting/remoting_webapp_files.gypi View 2 chunks +2 lines, -1 line 0 comments Download
M remoting/webapp/base/js/base.js View 1 2 3 1 chunk +16 lines, -6 lines 0 comments Download
M remoting/webapp/base/js/base_unittest.js View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M remoting/webapp/base/js/host.js View 1 2 3 4 1 chunk +2 lines, -86 lines 0 comments Download
A remoting/webapp/base/js/host_options.js View 1 2 3 1 chunk +223 lines, -0 lines 0 comments Download
A remoting/webapp/base/js/host_options_unittest.js View 1 chunk +106 lines, -0 lines 0 comments Download
D remoting/webapp/base/js/host_settings.js View 1 chunk +0 lines, -105 lines 0 comments Download
M remoting/webapp/crd/js/crd_experimental.js View 1 chunk +1 line, -2 lines 0 comments Download
M remoting/webapp/crd/js/desktop_connected_view.js View 4 chunks +9 lines, -9 lines 0 comments Download
M remoting/webapp/crd/js/desktop_remoting_activity.js View 1 2 3 4 1 chunk +2 lines, -6 lines 0 comments Download
M remoting/webapp/crd/js/desktop_viewport.js View 9 chunks +17 lines, -16 lines 0 comments Download
M remoting/webapp/crd/js/me2me_activity.js View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M remoting/webapp/crd/js/remoting_activity_test_driver.js View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M remoting/webapp/files.gni View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 24 (10 generated)
Jamie
ptal
5 years, 3 months ago (2015-09-23 18:00:47 UTC) #2
kelvinp
lgtm once my comments are addressed. https://codereview.chromium.org/1358173005/diff/1/remoting/webapp/base/js/host_options.js File remoting/webapp/base/js/host_options.js (right): https://codereview.chromium.org/1358173005/diff/1/remoting/webapp/base/js/host_options.js#newcode1 remoting/webapp/base/js/host_options.js:1: // Copyright (c) ...
5 years, 3 months ago (2015-09-23 20:02:26 UTC) #3
Jamie
Please take another look. One of your suggested changes involved some churn. https://codereview.chromium.org/1358173005/diff/1/remoting/webapp/base/js/host_options.js File remoting/webapp/base/js/host_options.js ...
5 years, 3 months ago (2015-09-23 20:47:13 UTC) #4
Jamie
As discussed, I re-added copyWithoutNullFields as a helper for mergeWithoutNullFields, which results in less churn. ...
5 years, 3 months ago (2015-09-23 22:10:09 UTC) #5
kelvinp
lgtm
5 years, 2 months ago (2015-09-24 21:51:02 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1358173005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1358173005/60001
5 years, 2 months ago (2015-09-24 21:54:07 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/73516) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 2 months ago (2015-09-24 21:57:17 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1358173005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1358173005/80001
5 years, 2 months ago (2015-09-25 00:35:31 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/118013)
5 years, 2 months ago (2015-09-25 01:15:28 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1358173005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1358173005/80001
5 years, 2 months ago (2015-09-25 16:07:27 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/57760) win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, ...
5 years, 2 months ago (2015-09-25 16:42:51 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1358173005/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1358173005/100001
5 years, 2 months ago (2015-09-25 18:51:00 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 2 months ago (2015-09-25 19:31:47 UTC) #23
commit-bot: I haz the power
5 years, 2 months ago (2015-09-25 19:32:26 UTC) #24
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/5816f58abd0d2b08d118924ed9240195a0a23716
Cr-Commit-Position: refs/heads/master@{#350886}

Powered by Google App Engine
This is Rietveld 408576698