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

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

Issue 9316086: Fix JavaScript errors in options2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: new violations found after rebase Created 8 years, 10 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/options2/certificate_tree.js
diff --git a/chrome/browser/resources/options2/certificate_tree.js b/chrome/browser/resources/options2/certificate_tree.js
index ee5d0755879578c339339bb7acd09f06be1df017..294ace4ef6acb2d8f61879be3b3927d7da3d7e2b 100644
--- a/chrome/browser/resources/options2/certificate_tree.js
+++ b/chrome/browser/resources/options2/certificate_tree.js
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 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.
@@ -27,7 +27,7 @@ cr.define('options', function() {
if (data.untrusted) {
var badge = document.createElement('span');
badge.setAttribute('class', 'certUntrusted');
- badge.textContent = localStrings.getString("badgeCertUntrusted");
+ badge.textContent = localStrings.getString('badgeCertUntrusted');
treeItem.labelElement.insertBefore(
badge, treeItem.labelElement.firstChild);
}
@@ -89,9 +89,8 @@ cr.define('options', function() {
clear: function() {
// Remove all fields without recreating the object since other code
// references it.
- for (var id in this.treeLookup_){
+ for (var id in this.treeLookup_)
delete this.treeLookup_[id];
- }
this.textContent = '';
},
« no previous file with comments | « chrome/browser/resources/options2/certificate_manager.js ('k') | chrome/browser/resources/options2/content_settings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698