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

Unified Diff: chrome/browser/resources/options/certificate_tree.js

Issue 7272014: Mark untrusted certificates as such in Linux UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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/options/certificate_tree.js
diff --git a/chrome/browser/resources/options/certificate_tree.js b/chrome/browser/resources/options/certificate_tree.js
index f8ac854dc3fe2af64b8a6afa29b58255afa8f1ba..2aec9abfce610c08c2a864851f79167a3c67c29b 100644
--- a/chrome/browser/resources/options/certificate_tree.js
+++ b/chrome/browser/resources/options/certificate_tree.js
@@ -24,6 +24,18 @@ cr.define('options', function() {
treeItem.icon = data.icon;
}
+ if (data.untrusted) {
+ var badge = document.createElement('span')
+ badge.textContent = (new LocalStrings()).getString("badgeUntrusted");
mattm 2011/06/29 01:12:07 localStrings.getString
agl 2011/06/29 14:31:11 Done.
+ badge.style.backgroundColor = 'pink'
+ badge.style.border = '1px solid red'
+ badge.style.borderRadius = '3px'
+ badge.style.marginLeft = '3px'
+ badge.style.paddingLeft = '1px'
+ badge.style.paddingRight = '1px'
mattm 2011/06/29 01:12:07 Create a certificate_tree.css and put the style st
agl 2011/06/29 14:31:11 Done.
+ treeItem.labelElement.appendChild(badge)
mattm 2011/06/29 01:12:07 From a UI perspective I wonder if it would look be
agl 2011/06/29 14:31:11 I agree that there's a danger that a long cert nam
+ }
+
return treeItem;
}

Powered by Google App Engine
This is Rietveld 408576698