Commit 9ae542cd authored by jamiewalch@google.com's avatar jamiewalch@google.com

Fixed consent checkbox test.

BUG=164296

Review URL: https://codereview.chromium.org/11446003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171104 0039d316-1c4b-4281-b951-d872f2087c98
parent 32e9897a
...@@ -144,7 +144,7 @@ remoting.HostSetupDialog = function(hostController) { ...@@ -144,7 +144,7 @@ remoting.HostSetupDialog = function(hostController) {
this.pinConfirm_.addEventListener('keypress', noDigitsInPin, false); this.pinConfirm_.addEventListener('keypress', noDigitsInPin, false);
this.usageStats_ = document.getElementById('usagestats-consent'); this.usageStats_ = document.getElementById('usagestats-consent');
this.usageStatsCheckbox_ = this.usageStatsCheckbox_ = /** @type {HTMLInputElement} */
document.getElementById('usagestats-consent-checkbox'); document.getElementById('usagestats-consent-checkbox');
}; };
...@@ -421,7 +421,7 @@ remoting.HostSetupDialog.prototype.onPinSubmit_ = function() { ...@@ -421,7 +421,7 @@ remoting.HostSetupDialog.prototype.onPinSubmit_ = function() {
} }
this.flow_.pin = pin1; this.flow_.pin = pin1;
this.flow_.consent = !this.usageStats_.hidden && this.flow_.consent = !this.usageStats_.hidden &&
(this.usageStatsCheckbox_.value == "on"); this.usageStatsCheckbox_.checked;
this.flow_.switchToNextStep(remoting.HostController.AsyncResult.OK); this.flow_.switchToNextStep(remoting.HostController.AsyncResult.OK);
this.updateState_(); this.updateState_();
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment