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

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

Issue 1003433002: Updated remoting.xhr API to use promises. Removed access to the native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@spy-promise
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/session_connector_impl.js
diff --git a/remoting/webapp/crd/js/session_connector_impl.js b/remoting/webapp/crd/js/session_connector_impl.js
index b84feee9a8dddd85227d24242f1b31120a195569..fad6ae97ad94dfb4a1c6b06b3cac1ee8eb9228ce 100644
--- a/remoting/webapp/crd/js/session_connector_impl.js
+++ b/remoting/webapp/crd/js/session_connector_impl.js
@@ -95,6 +95,9 @@ remoting.SessionConnectorImpl = function(clientContainer, onConnected, onError,
remoting.SessionConnectorImpl.prototype.resetConnection_ = function() {
this.removePlugin_();
+ // It's OK to initialize these member variables here because the
+ // constructor calls this method.
+
/** @private {remoting.Host} */
this.host_ = null;
@@ -110,9 +113,6 @@ remoting.SessionConnectorImpl.prototype.resetConnection_ = function() {
/** @private {remoting.DesktopConnectedView} */
this.connectedView_ = null;
- /** @private {XMLHttpRequest} */
- this.pendingXhr_ = null;
-
/** @private {remoting.CredentialsProvider} */
this.credentialsProvider_ = null;

Powered by Google App Engine
This is Rietveld 408576698