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

Unified Diff: chrome/browser/resources/md_user_manager/create_profile.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
« no previous file with comments | « no previous file | chrome/browser/resources/md_user_manager/supervised_user_create_confirm.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_user_manager/create_profile.js
diff --git a/chrome/browser/resources/md_user_manager/create_profile.js b/chrome/browser/resources/md_user_manager/create_profile.js
index 3e92efa3b2e54d205a7b77e3d330edabcce9a3d7..a9a15572c21bb760336d1837012acc1a42841aac 100644
--- a/chrome/browser/resources/md_user_manager/create_profile.js
+++ b/chrome/browser/resources/md_user_manager/create_profile.js
@@ -264,7 +264,8 @@ Polymer({
onImportUserTap_: function(event) {
if (this.signedInUserIndex_ == NO_USER_SELECTED) {
// A custodian must be selected.
- this.handleMessage_(this.i18n('custodianAccountNotSelectedError'));
+ this.handleMessage_(
+ this.i18nAdvanced('custodianAccountNotSelectedError'));
} else {
var signedInUser = this.signedInUser_(this.signedInUserIndex_);
this.hideMessage_();
@@ -286,7 +287,8 @@ Polymer({
this.createProfile_();
} else if (this.signedInUserIndex_ == NO_USER_SELECTED) {
// If the new profile is supervised, a custodian must be selected.
- this.handleMessage_(this.i18n('custodianAccountNotSelectedError'));
+ this.handleMessage_(
+ this.i18nAdvanced('custodianAccountNotSelectedError'));
} else {
var signedInUser = this.signedInUser_(this.signedInUserIndex_);
this.hideMessage_();
@@ -310,7 +312,7 @@ Polymer({
this.$.importUserPopup.show(this.signedInUser_(this.signedInUserIndex_),
supervisedUsers);
} else {
- this.handleMessage_(this.i18n('noSupervisedUserImportText'));
+ this.handleMessage_(this.i18nAdvanced('noSupervisedUserImportText'));
}
},
@@ -361,9 +363,10 @@ Polymer({
}
};
- this.handleMessage_(allOnCurrentDevice ?
- this.i18n('managedProfilesExistingLocalSupervisedUser') :
- this.i18nAdvanced('manageProfilesExistingSupervisedUser', opts));
+ this.handleMessage_(
+ allOnCurrentDevice ?
+ this.i18nAdvanced('managedProfilesExistingLocalSupervisedUser') :
+ this.i18nAdvanced('manageProfilesExistingSupervisedUser', opts));
return;
}
// No existing supervised user's name matches the entered profile name.
« no previous file with comments | « no previous file | chrome/browser/resources/md_user_manager/supervised_user_create_confirm.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698