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

Unified Diff: remoting/webapp/crd/js/desktop_remoting_activity.js

Issue 1358173005: Refactor HostSettings class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/webapp/crd/js/desktop_connected_view.js ('k') | remoting/webapp/crd/js/desktop_viewport.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/desktop_remoting_activity.js
diff --git a/remoting/webapp/crd/js/desktop_remoting_activity.js b/remoting/webapp/crd/js/desktop_remoting_activity.js
index 5b48b1e9674a25f9e02bcafd955acdddad0e35a2..b4c3a079edfa3244ab14270bf4b7fa468ec021cd 100644
--- a/remoting/webapp/crd/js/desktop_remoting_activity.js
+++ b/remoting/webapp/crd/js/desktop_remoting_activity.js
@@ -94,12 +94,8 @@ remoting.DesktopRemotingActivity.prototype.onConnected =
document.getElementById('client-container'), connectionInfo);
// Apply the default or previously-specified keyboard remapping.
- var remapping = connectionInfo.host().options.remapKeys;
- if (base.isEmptyObject(remapping) && remoting.platformIsChromeOS()) {
- // Under ChromeOS, remap the right Control key to the right Win/Cmd key.
- remapping = {0x0700e4: 0x0700e7};
- }
- connectionInfo.plugin().setRemapKeys(remapping);
+ var remapping = connectionInfo.host().options.getRemapKeys();
+ this.connectedView_.setRemapKeys(remapping);
if (connectionInfo.plugin().hasCapability(
remoting.ClientSession.Capability.VIDEO_RECORDER)) {
« no previous file with comments | « remoting/webapp/crd/js/desktop_connected_view.js ('k') | remoting/webapp/crd/js/desktop_viewport.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698