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

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..905d8f8acecda9d2c0329c40dd3e1c9456ffb2af 100644
--- a/chrome/browser/resources/options/certificate_tree.js
+++ b/chrome/browser/resources/options/certificate_tree.js
@@ -24,6 +24,14 @@ cr.define('options', function() {
treeItem.icon = data.icon;
}
+ if (data.untrusted) {
+ var badge = document.createElement('span');
+ badge.setAttribute('class', 'certUntrusted');
+ badge.textContent = localStrings.getString("badgeCertUntrusted");
+ treeItem.labelElement.insertBefore(
+ badge, treeItem.labelElement.firstChild);
+ }
+
return treeItem;
}

Powered by Google App Engine
This is Rietveld 408576698