| Index: remoting/webapp/crd/js/host_installer.js
|
| diff --git a/remoting/webapp/crd/js/host_installer.js b/remoting/webapp/crd/js/host_installer.js
|
| index 48e62a2cbad4ef956c49c1bb5839fdf8ba4c2782..8ae9b36b659c14631339de4fb9eff37ed88d4ff8 100644
|
| --- a/remoting/webapp/crd/js/host_installer.js
|
| +++ b/remoting/webapp/crd/js/host_installer.js
|
| @@ -122,30 +122,32 @@ remoting.HostInstaller.prototype.downloadAndWaitForInstall = function() {
|
| */
|
| var CHECK_INSTALL_INTERVAL_IN_MILLISECONDS = 1000;
|
|
|
| - /** @param {boolean} installed */
|
| - return this.isInstalled().then(function(installed){
|
| - if (installed) {
|
| - return Promise.resolve(true);
|
| - }
|
| -
|
| - if (that.downloadAndWaitForInstallPromise_ === null) {
|
| - that.downloadAndWaitForInstallPromise_ = new Promise(
|
| - /** @param {Function} resolve */
|
| - function(resolve){
|
| - that.download();
|
| - that.checkInstallIntervalId_ = window.setInterval(function() {
|
| - /** @param {boolean} installed */
|
| - that.isInstalled().then(function(installed) {
|
| - if (installed) {
|
| - that.cancel();
|
| - resolve();
|
| - }
|
| - });
|
| - }, CHECK_INSTALL_INTERVAL_IN_MILLISECONDS);
|
| + return this.isInstalled().then(
|
| + /** @param {boolean} installed */
|
| + function(installed){
|
| + if (installed) {
|
| + return Promise.resolve(true);
|
| + }
|
| +
|
| + if (that.downloadAndWaitForInstallPromise_ === null) {
|
| + that.downloadAndWaitForInstallPromise_ = new Promise(
|
| + /** @param {Function} resolve */
|
| + function(resolve){
|
| + that.download();
|
| + that.checkInstallIntervalId_ = window.setInterval(function() {
|
| + that.isInstalled().then(
|
| + /** @param {boolean} installed */
|
| + function(installed) {
|
| + if (installed) {
|
| + that.cancel();
|
| + resolve();
|
| + }
|
| + });
|
| + }, CHECK_INSTALL_INTERVAL_IN_MILLISECONDS);
|
| + });
|
| + }
|
| + return that.downloadAndWaitForInstallPromise_;
|
| });
|
| - }
|
| - return that.downloadAndWaitForInstallPromise_;
|
| - });
|
| };
|
|
|
| /**
|
|
|