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

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

Issue 2762823002: MD Settings: minor cleanup of content settings code. (Closed)
Patch Set: Created 3 years, 9 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/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 f481cc5da4e70946fdd431ff5e69be2ddac81274..53fb8ebee7454b538cb34e9fddc1455a5648bb8f 100644
--- a/chrome/browser/resources/settings/site_settings/category_default_setting.js
+++ b/chrome/browser/resources/settings/site_settings/category_default_setting.js
@@ -208,5 +208,14 @@ Polymer({
isToggleDisabled_: function() {
return this.category == settings.ContentSettingsTypes.POPUPS &&
loadTimeData.getBoolean('isGuest');
+ },
+
+ /**
+ * Returns classname to indicate secondary label exists.
+ * @param {boolean} subOptionLabel
+ * @private
+ */
+ subOptionClass_: function(subOptionLabel) {
+ return subOptionLabel ? 'two-line' : '';
}
});

Powered by Google App Engine
This is Rietveld 408576698