diff options
-rw-r--r-- | remoting/webapp/host_session.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/remoting/webapp/host_session.js b/remoting/webapp/host_session.js index d1f9a14..fb064e5 100644 --- a/remoting/webapp/host_session.js +++ b/remoting/webapp/host_session.js @@ -72,7 +72,16 @@ remoting.HostSession.prototype.createPluginAndConnect = this.plugin.onNatTraversalPolicyChanged = onNatTraversalPolicyChanged; this.plugin.onStateChanged = onStateChanged; this.plugin.logDebugInfo = logDebugInfo; - this.plugin.localize(chrome.i18n.getMessage); + this.plugin.localize( + /** @param {string} id */ + function(id) { + // Plugin takes care of string substitution, so we just keep + // $ placeholders. + // TODO(sergeyu): Refactor plugin location so that it + // doesn't need to do any substitutions. crbug.com/132370 . + return chrome.i18n.getMessage(id, ["$1", "$2", "$3"]); + } + ); this.plugin.connect(email, 'oauth2:' + accessToken); }; |