summaryrefslogtreecommitdiffstats
path: root/remoting/webapp
diff options
context:
space:
mode:
authorjamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-24 00:37:48 +0000
committerjamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-24 00:37:48 +0000
commit946175e5d93ef0a380ef33e82d017a77b5a60eec (patch)
treeddef6dc3bd0c9effe1ae2e957a0d2ec85cab82ad /remoting/webapp
parentd1f878033b542630b56dfd3c1f3a78f775de0711 (diff)
downloadchromium_src-946175e5d93ef0a380ef33e82d017a77b5a60eec.zip
chromium_src-946175e5d93ef0a380ef33e82d017a77b5a60eec.tar.gz
chromium_src-946175e5d93ef0a380ef33e82d017a77b5a60eec.tar.bz2
Move responsibility for l10n parameters to the caller.
BUG=132370 TEST=No behavioural change expected. Review URL: https://chromiumcodereview.appspot.com/10661058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148005 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/webapp')
-rw-r--r--remoting/webapp/host_session.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/remoting/webapp/host_session.js b/remoting/webapp/host_session.js
index fb064e5..d1f9a14 100644
--- a/remoting/webapp/host_session.js
+++ b/remoting/webapp/host_session.js
@@ -72,16 +72,7 @@ remoting.HostSession.prototype.createPluginAndConnect =
this.plugin.onNatTraversalPolicyChanged = onNatTraversalPolicyChanged;
this.plugin.onStateChanged = onStateChanged;
this.plugin.logDebugInfo = logDebugInfo;
- 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.localize(chrome.i18n.getMessage);
this.plugin.connect(email, 'oauth2:' + accessToken);
};