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

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

Issue 2282603002: [HBD] Update MD SiteSettingsHandler to support 3 modes. (Closed)
Patch Set: fix comment Created 4 years, 4 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/settings/site_settings/site_settings_category.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/site_settings/site_settings_behavior.js
diff --git a/chrome/browser/resources/settings/site_settings/site_settings_behavior.js b/chrome/browser/resources/settings/site_settings/site_settings_behavior.js
index d6bb2c43d74f0db5598b729288cd8aabe44bc89a..ed6538381e90506bb672c69fd1fa98f0ea446e3b 100644
--- a/chrome/browser/resources/settings/site_settings/site_settings_behavior.js
+++ b/chrome/browser/resources/settings/site_settings/site_settings_behavior.js
@@ -432,6 +432,20 @@ var SiteSettingsBehaviorImpl = {
var url = this.ensureUrlHasScheme(site);
return 'background-image: ' + cr.icon.getFaviconImageSet(url);
},
+
+ /**
+ * Returns true if the passed content setting is considered 'enabled'.
+ * @param {string} category
+ * @param {string} setting
+ * @return {boolean}
+ * @private
+ */
+ computeIsSettingEnabled: function(category, setting) {
+ // FullScreen is Allow vs. Ask.
+ return category == settings.ContentSettingsTypes.FULLSCREEN ?
+ setting != settings.PermissionValues.ASK :
+ setting != settings.PermissionValues.BLOCK;
+ },
};
/** @polymerBehavior */
« no previous file with comments | « no previous file | chrome/browser/resources/settings/site_settings/site_settings_category.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698