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

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

Issue 2468363005: [MD settings] show blocked sites even when category is blocked (Closed)
Patch Set: fixes Created 4 years, 1 month 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/add_site_dialog.js
diff --git a/chrome/browser/resources/settings/site_settings/add_site_dialog.js b/chrome/browser/resources/settings/site_settings/add_site_dialog.js
index 6c09138011aecb0055a15394f7f2fafd4e795087..162225f13acb7a56e57a05312aacae386286629f 100644
--- a/chrome/browser/resources/settings/site_settings/add_site_dialog.js
+++ b/chrome/browser/resources/settings/site_settings/add_site_dialog.js
@@ -14,15 +14,17 @@ Polymer({
properties: {
/**
- * The site to add an exception for.
- * @private
+ * Whether this is an allow exception this dialog is adding.
*/
- site_: String,
+ allowException: Boolean,
dpapad 2016/11/07 21:59:35 This was used when calling browserProxy.setCategor
dschuyler 2016/11/07 23:54:04 Done.
+
+ contentSetting: String,
dpapad 2016/11/07 21:59:35 Can you add a comment explaining what does this me
dschuyler 2016/11/07 23:54:04 Done.
/**
- * Whether this is an allow exception this dialog is adding.
+ * The site to add an exception for.
+ * @private
*/
- allowException: Boolean,
+ site_: String,
},
/**
@@ -76,8 +78,7 @@ Polymer({
return; // Can happen when Enter is pressed.
var pattern = this.addPatternWildcard(this.site_);
this.browserProxy.setCategoryPermissionForOrigin(
- pattern, pattern, this.category, this.allowException ?
- settings.PermissionValues.ALLOW : settings.PermissionValues.BLOCK,
+ pattern, pattern, this.category, this.contentSetting,
dpapad 2016/11/07 21:59:35 Are we assuming that |contentSettings| has been po
dschuyler 2016/11/07 23:54:04 I added asserts in attached so that they would be
this.$.incognito.checked);
this.$.dialog.close();
},

Powered by Google App Engine
This is Rietveld 408576698