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

Unified Diff: chrome/browser/resources/md_user_manager/supervised_user_create_confirm.js

Issue 2927213002: [MD settings] I18nBehavior return textContent from i18n() (Closed)
Patch Set: merge with master Created 3 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
Index: chrome/browser/resources/md_user_manager/supervised_user_create_confirm.js
diff --git a/chrome/browser/resources/md_user_manager/supervised_user_create_confirm.js b/chrome/browser/resources/md_user_manager/supervised_user_create_confirm.js
index f89d0d58c952d6a531c8c05e072da60945513365..69a041f6e123264223b3fd4ff287ff8b08b86d69 100644
--- a/chrome/browser/resources/md_user_manager/supervised_user_create_confirm.js
+++ b/chrome/browser/resources/md_user_manager/supervised_user_create_confirm.js
@@ -18,9 +18,7 @@ var MAX_NAME_LENGTH = 50;
Polymer({
is: 'supervised-user-create-confirm',
- behaviors: [
- I18nBehavior
- ],
+ behaviors: [I18nBehavior],
properties: {
/**
@@ -29,16 +27,16 @@ Polymer({
*/
profileInfo: {
type: Object,
- value: function() { return null; }
+ value: function() {
+ return null;
+ }
},
/** @private {!signin.ProfileBrowserProxy} */
browserProxy_: Object
},
- listeners: {
- 'tap': 'onTap_'
- },
+ listeners: {'tap': 'onTap_'},
/** @override */
created: function() {
@@ -104,9 +102,12 @@ Polymer({
* @private
*/
confirmationMessage_: function(profileInfo) {
- return this.i18n('supervisedUserCreatedText',
- this.elideProfileName_(profileInfo),
- this.elideCustodianUsername_(profileInfo));
+ return this.i18nAdvanced('supervisedUserCreatedText', {
+ substitutions: [
+ this.elideProfileName_(profileInfo),
+ this.elideCustodianUsername_(profileInfo)
+ ],
+ });
},
/**
« no previous file with comments | « chrome/browser/resources/md_user_manager/create_profile.js ('k') | chrome/browser/resources/settings/about_page/about_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698