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

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

Issue 2298283002: Site Settings Desktop: Support adding exceptions for incognito mode. (Closed)
Patch Set: Fix test 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_details_permission.js
diff --git a/chrome/browser/resources/settings/site_settings/site_details_permission.js b/chrome/browser/resources/settings/site_settings/site_details_permission.js
index 649465677a6c63e9d3506fa589460be0cc52d41b..eb7e48b8df0e6bd22f7fead3c929186f86960601 100644
--- a/chrome/browser/resources/settings/site_settings/site_details_permission.js
+++ b/chrome/browser/resources/settings/site_settings/site_details_permission.js
@@ -86,8 +86,9 @@ Polymer({
* Resets the category permission for this origin.
*/
resetPermission: function() {
- this.resetCategoryPermissionForOrigin(
- this.site.origin, this.site.embeddingOrigin, this.category);
+ this.browserProxy.resetCategoryPermissionForOrigin(
+ this.site.origin, this.site.embeddingOrigin, this.category,
+ this.site.incognito);
this.$.details.hidden = true;
},
@@ -97,7 +98,8 @@ Polymer({
*/
onPermissionMenuIronActivate_: function(event) {
var value = event.detail.item.dataset.permissionValue;
- this.setCategoryPermissionForOrigin(
- this.site.origin, this.site.embeddingOrigin, this.category, value);
+ this.browserProxy.setCategoryPermissionForOrigin(
+ this.site.origin, this.site.embeddingOrigin, this.category, value,
+ this.site.incognito);
},
});

Powered by Google App Engine
This is Rietveld 408576698