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

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

Issue 1661533002: Implement deletion of storage per site. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nits Created 4 years, 10 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_list.js
diff --git a/chrome/browser/resources/settings/site_settings/site_list.js b/chrome/browser/resources/settings/site_settings/site_list.js
index 79e64e41a0956f5b45e839301cddefb984ab2caf..cef198773d4c0e085c66f4be39f34034dda15ee2 100644
--- a/chrome/browser/resources/settings/site_settings/site_list.js
+++ b/chrome/browser/resources/settings/site_settings/site_list.js
@@ -30,6 +30,14 @@ Polymer({
},
/**
+ * The current active route.
+ */
+ currentRoute: {
+ type: Object,
+ notify: true,
+ },
+
+ /**
* The origin that was selected by the user in the dropdown list.
*/
selectedOrigin: {
@@ -201,6 +209,13 @@ Polymer({
*/
onOriginTap_: function(event) {
this.selectedOrigin = event.model.item.url;
+ var categorySelected = this.computeCategoryTextId(this.category);
+ this.currentRoute = {
+ page: this.currentRoute.page,
+ section: 'privacy',
+ subpage: ['site-settings', 'site-settings-category-' +
+ categorySelected, 'site-details'],
+ };
},
/**

Powered by Google App Engine
This is Rietveld 408576698