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

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

Issue 2031833003: MD Site Settings: Implement the third-party checkbox for Cookies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback Created 4 years, 6 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_category.js
diff --git a/chrome/browser/resources/settings/site_settings/site_settings_category.js b/chrome/browser/resources/settings/site_settings/site_settings_category.js
index 6bf06cfceae3c81fd2fc39f04c044f68b2fb19a7..1a4ec25fc90891baaa8b0159b7fb0c05eb0b1164 100644
--- a/chrome/browser/resources/settings/site_settings/site_settings_category.js
+++ b/chrome/browser/resources/settings/site_settings/site_settings_category.js
@@ -22,6 +22,14 @@ Polymer({
},
/**
+ * Preferences state.
+ */
+ prefs: {
+ type: Object,
+ notify: true,
+ },
+
+ /**
* Represents the state of the main toggle shown for the category. For
* example, the Location category can be set to Block/Ask so false, in that
* case, represents Block and true represents Ask.
@@ -56,6 +64,9 @@ Polymer({
this.addWebUIListener('contentSettingCategoryChanged',
this.defaultValueForCategoryChanged_.bind(this));
+
+ if (this.category == settings.ContentSettingsTypes.COOKIES)
+ this.$.cookieControls.hidden = false;
},
/**

Powered by Google App Engine
This is Rietveld 408576698