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

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

Issue 1909413002: Site Settings: Implement dialog for adding site exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback Created 4 years, 8 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 fe3a19cae7e35dc30f8726f262042eee3241215a..6bf06cfceae3c81fd2fc39f04c044f68b2fb19a7 100644
--- a/chrome/browser/resources/settings/site_settings/site_settings_category.js
+++ b/chrome/browser/resources/settings/site_settings/site_settings_category.js
@@ -112,4 +112,20 @@ Polymer({
this.categoryEnabled = enabled;
}.bind(this));
},
+
+ /**
+ * A handler for the Add Site button.
+ * @private
+ */
+ onAddSiteTap_: function() {
+ var dialog = document.createElement('add-site-dialog');
+ dialog.category = this.category;
+ this.shadowRoot.appendChild(dialog);
+
+ dialog.open();
+
+ dialog.addEventListener('iron-overlay-closed', function() {
+ dialog.remove();
+ });
+ },
});

Powered by Google App Engine
This is Rietveld 408576698