Index: remoting/webapp/crd/js/app_launcher.js |
diff --git a/remoting/webapp/crd/js/app_launcher.js b/remoting/webapp/crd/js/app_launcher.js |
index b506a6cbbe4fd4a72c7eb97381ef35f495709f83..29589dfc45f6f8d9ba358d02e4d37b5a6cf75be5 100644 |
--- a/remoting/webapp/crd/js/app_launcher.js |
+++ b/remoting/webapp/crd/js/app_launcher.js |
@@ -78,7 +78,7 @@ remoting.V1AppLauncher.prototype.close = function(id) { |
if (!tab) { |
reject(new Error(chrome.runtime.lastError.message)); |
} else { |
- chrome.tabs.remove(tab.id, resolve); |
+ chrome.tabs.remove(tab.id, /** @type {function(*=):void} */ (resolve)); |
} |
}); |
}); |
@@ -111,7 +111,7 @@ remoting.V2AppLauncher.prototype.launch = function(opt_launchArgs) { |
'frame': 'none', |
'id': String(remoting.V2AppLauncher.nextWindowId_++) |
}, |
- /** @param {AppWindow} appWindow */ |
+ /** @param {AppWindow=} appWindow */ |
function(appWindow) { |
if (!appWindow) { |
reject(new Error(chrome.runtime.lastError.message)); |