summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/options/certificate_tree.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/resources/options/certificate_tree.js')
-rw-r--r--chrome/browser/resources/options/certificate_tree.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/chrome/browser/resources/options/certificate_tree.js b/chrome/browser/resources/options/certificate_tree.js
index f8ac854..ee5d075 100644
--- a/chrome/browser/resources/options/certificate_tree.js
+++ b/chrome/browser/resources/options/certificate_tree.js
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -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;
}