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

Unified Diff: chrome/browser/resources/settings/site_settings/category_default_setting.js

Issue 2655463010: [MD settings] correct label for policy controlled flash settings (Closed)
Patch Set: Created 3 years, 11 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 | « chrome/browser/resources/settings/privacy_page/privacy_page.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/site_settings/category_default_setting.js
diff --git a/chrome/browser/resources/settings/site_settings/category_default_setting.js b/chrome/browser/resources/settings/site_settings/category_default_setting.js
index d360ef9c6f028a87529b9ee19e74118c6d47defc..4496d23e2260f77e2f4689b6d649079fff086fcc 100644
--- a/chrome/browser/resources/settings/site_settings/category_default_setting.js
+++ b/chrome/browser/resources/settings/site_settings/category_default_setting.js
@@ -46,6 +46,10 @@ Polymer({
return /** @type {chrome.settingsPrivate.PrefObject} */({});
},
},
+
+ /* Labels for the toggle on/off positions. */
+ toggleOffLabel: String,
+ toggleOnLabel: String,
},
observers: [
@@ -190,8 +194,9 @@ Polymer({
setting == settings.PermissionValues.SESSION_ONLY) {
setting = settings.PermissionValues.ALLOW;
}
+ var categoryEnabled = setting != settings.PermissionValues.BLOCK;
this.sliderDescription_ =
- this.computeCategoryDesc(this.category, setting, true);
+ categoryEnabled ? this.toggleOnLabel : this.toggleOffLabel;
}.bind(this));
},
});
« no previous file with comments | « chrome/browser/resources/settings/privacy_page/privacy_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698