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

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

Issue 152143009: Clarify settings UI in multi-profiles mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/controlled_setting.js
diff --git a/chrome/browser/resources/options/controlled_setting.js b/chrome/browser/resources/options/controlled_setting.js
index bbf1de8fe945636401800ceaaf6ce4f3ed889665..abe06e704a594b2086f58af8ba6be1531cd3bd63 100644
--- a/chrome/browser/resources/options/controlled_setting.js
+++ b/chrome/browser/resources/options/controlled_setting.js
@@ -105,6 +105,10 @@ cr.define('options', function() {
'extensionWithName': loadTimeData.getString(
'controlledSettingsExtensionWithName'),
};
+ if (cr.isChromeOS) {
+ defaultStrings['shared'] =
Dan Beam 2014/02/12 21:56:31 s/['shared']/.shared/
michaelpg 2014/02/13 02:15:23 Done.
+ loadTimeData.getString('controlledSettingsShared');
+ }
} else {
var defaultStrings = {
'policy': loadTimeData.getString('controlledSettingPolicy'),
@@ -117,8 +121,10 @@ cr.define('options', function() {
loadTimeData.getString('controlledSettingHasRecommendation'),
};
if (cr.isChromeOS) {
- defaultStrings.owner =
+ defaultStrings['owner'] =
Dan Beam 2014/02/12 21:56:31 revert
michaelpg 2014/02/13 02:15:23 Done.
loadTimeData.getString('controlledSettingOwner');
+ defaultStrings['shared'] =
+ loadTimeData.getString('controlledSettingShared');
Dan Beam 2014/02/12 21:56:31 s/['shared']/.shared/
michaelpg 2014/02/13 02:15:23 Done.
}
}
@@ -221,6 +227,10 @@ cr.define('options', function() {
* override this recommendation but has not done so.
* - 'hasRecommendation': A value is recommended by policy. The user has
* overridden this recommendation.
+ * - 'owner': A value is controlled by the owner of the device
+ * (Chrome OS only).
+ * - 'shared': A value belongs to the primary user but can be
+ * modified (Chrome OS only).
* - unset: The value is controlled by the user alone.
* @type {string}
*/

Powered by Google App Engine
This is Rietveld 408576698