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

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

Issue 403343002: Rename "managed (mode|user)" to "supervised user" (part 8) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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/options/supervised_user_create_confirm.js
diff --git a/chrome/browser/resources/options/managed_user_create_confirm.js b/chrome/browser/resources/options/supervised_user_create_confirm.js
similarity index 66%
rename from chrome/browser/resources/options/managed_user_create_confirm.js
rename to chrome/browser/resources/options/supervised_user_create_confirm.js
index da1e475fa4b98b9e2f8747bd223c0751a13aaeb7..91f1cf11f58ea5809a5077657d7ce7e461c99659 100644
--- a/chrome/browser/resources/options/managed_user_create_confirm.js
+++ b/chrome/browser/resources/options/supervised_user_create_confirm.js
@@ -6,21 +6,21 @@ cr.define('options', function() {
var OptionsPage = options.OptionsPage;
/**
- * ManagedUserCreateConfirm class.
+ * SupervisedUserCreateConfirm class.
* Encapsulated handling of the confirmation overlay page when creating a
- * managed user.
+ * supervised user.
* @constructor
* @class
*/
- function ManagedUserCreateConfirmOverlay() {
- OptionsPage.call(this, 'managedUserCreateConfirm',
+ function SupervisedUserCreateConfirmOverlay() {
+ OptionsPage.call(this, 'supervisedUserCreateConfirm',
'', // The title will be based on the new profile name.
- 'managed-user-created');
+ 'supervised-user-created');
};
- cr.addSingletonGetter(ManagedUserCreateConfirmOverlay);
+ cr.addSingletonGetter(SupervisedUserCreateConfirmOverlay);
- ManagedUserCreateConfirmOverlay.prototype = {
+ SupervisedUserCreateConfirmOverlay.prototype = {
// Inherit from OptionsPage.
__proto__: OptionsPage.prototype,
@@ -31,13 +31,13 @@ cr.define('options', function() {
initializePage: function() {
OptionsPage.prototype.initializePage.call(this);
- $('managed-user-created-done').onclick = function(event) {
+ $('supervised-user-created-done').onclick = function(event) {
OptionsPage.closeOverlay();
};
var self = this;
- $('managed-user-created-switch').onclick = function(event) {
+ $('supervised-user-created-switch').onclick = function(event) {
OptionsPage.closeOverlay();
chrome.send('switchToProfile', [self.profileInfo_.filePath]);
};
@@ -45,7 +45,7 @@ cr.define('options', function() {
/** @override */
didShowPage: function() {
- $('managed-user-created-switch').focus();
+ $('supervised-user-created-switch').focus();
},
/**
@@ -56,7 +56,7 @@ cr.define('options', function() {
* info = {
* name: "Profile Name",
* filePath: "/path/to/profile/data/on/disk",
- * isManaged: (true|false)
+ * isSupervised: (true|false)
* custodianEmail: "example@gmail.com"
* };
* @private
@@ -65,16 +65,16 @@ cr.define('options', function() {
this.profileInfo_ = info;
var MAX_LENGTH = 50;
var elidedName = elide(info.name, MAX_LENGTH);
- $('managed-user-created-title').textContent =
- loadTimeData.getStringF('managedUserCreatedTitle', elidedName);
- $('managed-user-created-switch').textContent =
- loadTimeData.getStringF('managedUserCreatedSwitch', elidedName);
+ $('supervised-user-created-title').textContent =
+ loadTimeData.getStringF('supervisedUserCreatedTitle', elidedName);
+ $('supervised-user-created-switch').textContent =
+ loadTimeData.getStringF('supervisedUserCreatedSwitch', elidedName);
// HTML-escape the user-supplied strings before putting them into
// innerHTML. This is probably excessive for the email address, but
// belt-and-suspenders is cheap here.
- $('managed-user-created-text').innerHTML =
- loadTimeData.getStringF('managedUserCreatedText',
+ $('supervised-user-created-text').innerHTML =
+ loadTimeData.getStringF('supervisedUserCreatedText',
HTMLEscape(elidedName),
HTMLEscape(elide(info.custodianEmail,
MAX_LENGTH)));
@@ -90,14 +90,14 @@ cr.define('options', function() {
[
'setProfileInfo',
].forEach(function(name) {
- ManagedUserCreateConfirmOverlay[name] = function() {
- var instance = ManagedUserCreateConfirmOverlay.getInstance();
+ SupervisedUserCreateConfirmOverlay[name] = function() {
+ var instance = SupervisedUserCreateConfirmOverlay.getInstance();
return instance[name + '_'].apply(instance, arguments);
};
});
// Export
return {
- ManagedUserCreateConfirmOverlay: ManagedUserCreateConfirmOverlay,
+ SupervisedUserCreateConfirmOverlay: SupervisedUserCreateConfirmOverlay,
};
});

Powered by Google App Engine
This is Rietveld 408576698