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

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
Index: remoting/webapp/crd/js/host.js
diff --git a/remoting/webapp/crd/js/host.js b/remoting/webapp/crd/js/host.js
index 59129b1dfc2f3f0cbcd56e287e9b8b1a3806e040..0d9ffe859ce11c605c047d9a59cef80f35593b7c 100644
--- a/remoting/webapp/crd/js/host.js
+++ b/remoting/webapp/crd/js/host.js
@@ -84,10 +84,10 @@ 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', '');
});
};

Powered by Google App Engine
This is Rietveld 408576698