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

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

Issue 2354313002: Site Settings Desktop: Flesh out controlled exceptions a little more. (Closed)
Patch Set: Polish Created 4 years, 3 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/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 d810c8226962bcf129c71e40301a519caaa345d4..29a62129557b4ad2815c0cbb128f667bae64f514 100644
--- a/chrome/browser/resources/settings/site_settings/site_settings_behavior.js
+++ b/chrome/browser/resources/settings/site_settings/site_settings_behavior.js
@@ -418,6 +418,17 @@ var SiteSettingsBehaviorImpl = {
},
/**
+ * Returns true if this exception is controlled by, for example, a policy or
+ * set by an extension.
+ * @param {string} source The source controlling the extension
+ * @return {boolean} Whether it is being controlled.
+ * @protected
+ */
+ isExceptionControlled_: function(source) {
+ return source != 'preference';
+ },
+
+ /**
* Returns the icon to use for a given site.
* @param {string} site The url of the site to fetch the icon for.
* @return {string} The background-image style with the favicon.

Powered by Google App Engine
This is Rietveld 408576698