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

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

Issue 945033002: Updated XHR API so call sites are more descriptive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@xhr-test
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
« no previous file with comments | « remoting/webapp/crd/js/oauth2_api_impl.js ('k') | remoting/webapp/crd/js/third_party_token_fetcher.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a14d3a8b7351915abc569fffe6af4f8e27077f0a..b8d070cbd70a550ca1fce19ac4412838cd88a19e 100644
--- a/remoting/webapp/crd/js/session_connector_impl.js
+++ b/remoting/webapp/crd/js/session_connector_impl.js
@@ -110,7 +110,7 @@ remoting.SessionConnectorImpl.prototype.resetConnection_ = function() {
/** @private {remoting.DesktopConnectedView} */
this.connectedView_ = null;
- /** @private {XMLHttpRequest} */
+ /** @private {remoting.Xhr} */
this.pendingXhr_ = null;
/** @private {remoting.CredentialsProvider} */
@@ -331,10 +331,12 @@ remoting.SessionConnectorImpl.prototype.createSession_ = function() {
this.host_.options.load().then(function(){
that.plugin_.initialize(that.onPluginInitialized_.bind(that));
});
+ this.pendingXhr_.then(this.onIT2MeHostInfo_.bind(this, hostId));
};
/**
* @param {boolean} initialized
+ * support-hosts query.
* @private
*/
remoting.SessionConnectorImpl.prototype.onPluginInitialized_ = function(
« no previous file with comments | « remoting/webapp/crd/js/oauth2_api_impl.js ('k') | remoting/webapp/crd/js/third_party_token_fetcher.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698