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

Unified Diff: chrome/browser/resources/policy.js

Issue 1304843004: Add source column to chrome://policy showing the origins of policies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed another test. Created 5 years, 3 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/policy.js
diff --git a/chrome/browser/resources/policy.js b/chrome/browser/resources/policy.js
index bec30a7caaef25080064288f05d06cc4624f7bb7..aaba4ff6e212501a0e9b9db32b1fd6648c9536bc 100644
--- a/chrome/browser/resources/policy.js
+++ b/chrome/browser/resources/policy.js
@@ -134,6 +134,8 @@ cr.define('policy', function() {
this.querySelector('.level').textContent =
loadTimeData.getString(value.level == 'recommended' ?
'levelRecommended' : 'levelMandatory');
+ this.querySelector('.source').textContent =
+ loadTimeData.getString(value.source);
this.querySelector('.value').textContent = value.value;
this.querySelector('.expanded-value').textContent = value.value;
}
@@ -519,7 +521,8 @@ cr.define('policy', function() {
var newTable = window.document.createElement('table');
var tableHead = window.document.createElement('thead');
var tableRow = window.document.createElement('tr');
- var tableHeadings = ['Scope', 'Level', 'Name', 'Value', 'Status'];
+ var tableHeadings = ['Scope', 'Level', 'Source', 'Name', 'Value',
+ 'Status'];
for (var i = 0; i < tableHeadings.length; i++) {
var tableHeader = window.document.createElement('th');
tableHeader.classList.add(tableHeadings[i].toLowerCase() + '-column');
« no previous file with comments | « chrome/browser/resources/policy.html ('k') | chrome/browser/search/contextual_search_policy_handler_android_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698