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

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

Issue 1015553003: Added more typechecking functions and unit tests for existing code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/gnubby_auth_handler.js ('k') | remoting/webapp/crd/js/host_daemon_facade.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/host.js
diff --git a/remoting/webapp/crd/js/host.js b/remoting/webapp/crd/js/host.js
index 6bc0bbadc026ff34102a57c4c1e1a40f55ca0670..9070b431d8118e8b75e6cda8c300cf14aff33c61 100644
--- a/remoting/webapp/crd/js/host.js
+++ b/remoting/webapp/crd/js/host.js
@@ -86,13 +86,13 @@ remoting.Host.Options.prototype.load = function() {
// TODO(kelvinp): Uses a separate host options for app-remoting that
// hardcodes resizeToClient to true.
that.resizeToClient =
- getBooleanAttr(options, 'resizeToClient', true);
- that.shrinkToFit = getBooleanAttr(options, 'shrinkToFit', true);
- that.desktopScale = getNumberAttr(options, 'desktopScale', 1);
- that.remapKeys = getStringAttr(options, 'remapKeys', '');
+ base.getBooleanAttr(options, 'resizeToClient', true);
+ that.shrinkToFit = base.getBooleanAttr(options, 'shrinkToFit', true);
+ that.desktopScale = base.getNumberAttr(options, 'desktopScale', 1);
+ that.remapKeys = base.getStringAttr(options, 'remapKeys', '');
that.pairingInfo =
/** @type {remoting.PairingInfo} */ (
- getObjectAttr(options, 'pairingInfo', that.pairingInfo));
+ base.getObjectAttr(options, 'pairingInfo', that.pairingInfo));
});
};
« no previous file with comments | « remoting/webapp/crd/js/gnubby_auth_handler.js ('k') | remoting/webapp/crd/js/host_daemon_facade.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698