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

Unified Diff: remoting/webapp/wcs_sandbox_content.js

Issue 17449017: Delete and recreate the client plugin if WCS is reloaded. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reviewer feedback. Created 7 years, 6 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/wcs_sandbox_container.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/wcs_sandbox_content.js
diff --git a/remoting/webapp/wcs_sandbox_content.js b/remoting/webapp/wcs_sandbox_content.js
index b97f6a4c6dc8eee2c2d72cd0d40a6e0c6c1227b1..8de46633731412c76617e6045bc39db7e6a3d850 100644
--- a/remoting/webapp/wcs_sandbox_content.js
+++ b/remoting/webapp/wcs_sandbox_content.js
@@ -75,7 +75,7 @@ remoting.WcsSandboxContent.prototype.onMessage_ = function(event) {
} else if (!remoting.wcsLoader) {
remoting.wcsLoader = new remoting.WcsLoader();
remoting.wcsLoader.start(token,
- this.onReady_.bind(this),
+ this.onLocalJid_.bind(this),
this.onError_.bind(this));
}
break;
@@ -121,10 +121,10 @@ remoting.WcsSandboxContent.prototype.onMessage_ = function(event) {
* @param {string} clientJid The full JID of the WCS client.
* @private
*/
-remoting.WcsSandboxContent.prototype.onReady_ = function(clientJid) {
+remoting.WcsSandboxContent.prototype.onLocalJid_ = function(clientJid) {
remoting.wcs.setOnIq(this.onIq_.bind(this));
var message = {
- 'command': 'onReady',
+ 'command': 'onLocalJid',
'clientJid': clientJid
};
this.parentWindow_.postMessage(message, '*');
« no previous file with comments | « remoting/webapp/wcs_sandbox_container.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698