summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-22 02:13:27 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-22 02:13:27 +0000
commit92b89c2b5f91bce6ce4987168f8b324fd018cd43 (patch)
treecab71bdf399bc1bba296e11f0671dc5bd0a6c3b3 /chrome
parent832c52849ad8202a19266a2e7ac0054391c76c27 (diff)
downloadchromium_src-92b89c2b5f91bce6ce4987168f8b324fd018cd43.zip
chromium_src-92b89c2b5f91bce6ce4987168f8b324fd018cd43.tar.gz
chromium_src-92b89c2b5f91bce6ce4987168f8b324fd018cd43.tar.bz2
Fix two warnings surfaced by closure compiler.
Review URL: http://codereview.chromium.org/8372018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106838 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/resources/net_internals/hsts_view.js6
-rw-r--r--chrome/browser/resources/net_internals/log_util.js2
2 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/resources/net_internals/hsts_view.js b/chrome/browser/resources/net_internals/hsts_view.js
index 8ca004b..9e69e33 100644
--- a/chrome/browser/resources/net_internals/hsts_view.js
+++ b/chrome/browser/resources/net_internals/hsts_view.js
@@ -31,11 +31,13 @@ var HSTSView = (function() {
this.queryInput_ = $(HSTSView.QUERY_INPUT_ID);
this.queryOutputDiv_ = $(HSTSView.QUERY_OUTPUT_DIV_ID);
- form = $(HSTSView.ADD_FORM_ID);
+ var form = $(HSTSView.ADD_FORM_ID);
form.addEventListener('submit', this.onSubmitAdd_.bind(this), false);
+
form = $(HSTSView.DELETE_FORM_ID);
form.addEventListener('submit', this.onSubmitDelete_.bind(this), false);
- var form = $(HSTSView.QUERY_FORM_ID);
+
+ form = $(HSTSView.QUERY_FORM_ID);
form.addEventListener('submit', this.onSubmitQuery_.bind(this), false);
g_browser.addHSTSObserver(this);
diff --git a/chrome/browser/resources/net_internals/log_util.js b/chrome/browser/resources/net_internals/log_util.js
index 4473d6e..50a7253 100644
--- a/chrome/browser/resources/net_internals/log_util.js
+++ b/chrome/browser/resources/net_internals/log_util.js
@@ -225,7 +225,7 @@ logutil = (function() {
if (end != -1)
parsedDump = JSON.parse(logFileContents.substring(0, end) + ']}');
}
- catch (error) {
+ catch (error2) {
}
}