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

Unified Diff: chrome/browser/resources/settings/privacy_page/privacy_page.js

Issue 2450423002: [MD settings] cookie and site data from dialog to subpage (Closed)
Patch Set: review nit 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/privacy_page/privacy_page.js
diff --git a/chrome/browser/resources/settings/privacy_page/privacy_page.js b/chrome/browser/resources/settings/privacy_page/privacy_page.js
index e2f2c045052fb973d4c9ea81ab5a3f295c55a787..e70c3808eaf6fa6199cec7b60a04de631175f6b9 100644
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.js
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.js
@@ -80,6 +80,17 @@ Polymer({
</if>
},
+ /**
+ * This is a workaround to connect the remove all button to the subpage.
+ * @private
+ */
+ onRemoveAllCookiesFromSite_: function() {
+ var node = /** @type {?SiteDataDetailsSubpageElement} */(this.$$(
+ 'site-data-details-subpage'));
+ if (node)
+ node.removeAll();
+ },
+
/** @private */
onSiteSettingsTap_: function() {
settings.navigateTo(settings.Route.SITE_SETTINGS);
« no previous file with comments | « chrome/browser/resources/settings/privacy_page/privacy_page.html ('k') | chrome/browser/resources/settings/route.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698