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

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

Issue 803653004: Update Chromoting to use /third_party/closure_compiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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_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_;
- });
};
/**

Powered by Google App Engine
This is Rietveld 408576698