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

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

Issue 2936003003: MD Settings: Set all content setting values in Site Details Javascript. (Closed)
Patch Set: Review comments. Created 3 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_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 17ca6c0d2ea30a0ac139c6d9ff0eb57538f185e9..2d799f5d5cff534280b8ad14af557d97721ddbd0 100644
--- a/chrome/browser/resources/settings/site_settings/site_details_permission.js
+++ b/chrome/browser/resources/settings/site_settings/site_details_permission.js
@@ -48,22 +48,12 @@ Polymer({
},
/**
- * Sets the site to display.
+ * Updates the drop-down value after |site| has changed.
* @param {!SiteException} site The site to display.
* @private
*/
siteChanged_: function(site) {
-
- this.browserProxy.getExceptionList(this.category)
- .then(function(exceptionList) {
- for (var i = 0; i < exceptionList.length; ++i) {
- if (exceptionList[i].embeddingOrigin == site.embeddingOrigin &&
- this.sameOrigin_(exceptionList[i].origin, site.origin)) {
- this.$.permission.value = exceptionList[i].setting;
- break;
- }
- }
- }.bind(this));
+ this.$.permission.value = site.setting;
},
/**

Powered by Google App Engine
This is Rietveld 408576698