summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
authorjamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-29 20:22:05 +0000
committerjamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-29 20:22:05 +0000
commit1e70ed9ba0f327a770a4dd7429b919ad292e7c32 (patch)
tree5fadca3b8b3eefd6cebb2555264fcc793346c5b7 /remoting
parent1f249e24c736c7e8a330567b1403d8893f57ea49 (diff)
downloadchromium_src-1e70ed9ba0f327a770a4dd7429b919ad292e7c32.zip
chromium_src-1e70ed9ba0f327a770a4dd7429b919ad292e7c32.tar.gz
chromium_src-1e70ed9ba0f327a770a4dd7429b919ad292e7c32.tar.bz2
Fix token refresh closure.
BUG=105752 TEST=Manual Review URL: http://codereview.chromium.org/8728037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112010 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r--remoting/webapp/me2mom/wcs.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/remoting/webapp/me2mom/wcs.js b/remoting/webapp/me2mom/wcs.js
index 88641bb..5898733 100644
--- a/remoting/webapp/me2mom/wcs.js
+++ b/remoting/webapp/me2mom/wcs.js
@@ -65,7 +65,11 @@ remoting.Wcs = function(wcsIqClient, token, onReady, tokenRefresh) {
* @private
*/
this.pollForUpdatedToken_ = setInterval(
- function() { tokenRefresh(that.setToken_); },
+ function() {
+ /** @param {string} token */
+ var setToken = function(token) { that.setToken_(token); }
+ tokenRefresh(setToken);
+ },
60 * 1000);
/**