diff options
author | jamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-24 00:37:48 +0000 |
---|---|---|
committer | jamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-24 00:37:48 +0000 |
commit | 946175e5d93ef0a380ef33e82d017a77b5a60eec (patch) | |
tree | ddef6dc3bd0c9effe1ae2e957a0d2ec85cab82ad /remoting/webapp | |
parent | d1f878033b542630b56dfd3c1f3a78f775de0711 (diff) | |
download | chromium_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.js | 11 |
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); }; |