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

Unified Diff: chrome/browser/resources/net_internals/browser_bridge.js

Issue 7564029: Use javascript strict mode throughout a number of net-internals files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix one more var Created 9 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/resources/net_internals/capture_view.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/net_internals/browser_bridge.js
===================================================================
--- chrome/browser/resources/net_internals/browser_bridge.js (revision 95298)
+++ chrome/browser/resources/net_internals/browser_bridge.js (working copy)
@@ -6,17 +6,20 @@
* This class provides a "bridge" for communicating between the javascript and
* the browser.
*/
+var BrowserBridge = (function() {
+ 'use strict';
-var BrowserBridge = (function() {
/**
* Delay in milliseconds between updates of certain browser information.
*/
- const POLL_INTERVAL_MS = 5000;
+ var POLL_INTERVAL_MS = 5000;
/**
* @constructor
*/
function BrowserBridge() {
+ assertFirstConstructorCall(BrowserBridge);
+
// List of observers for various bits of browser state.
this.connectionTestsObservers_ = [];
this.hstsObservers_ = [];
@@ -481,7 +484,7 @@
* runs updates with active observers.
*/
checkForUpdatedInfo: function(force) {
- for (name in this.pollableDataHelpers_) {
+ for (var name in this.pollableDataHelpers_) {
var helper = this.pollableDataHelpers_[name];
if (force || helper.hasActiveObserver())
helper.startUpdate();
@@ -605,7 +608,7 @@
this.observingCount_ = 0;
this.updatedData_ = {};
- for (name in pollableDataHelpers) {
+ for (var name in pollableDataHelpers) {
++this.observingCount_;
var helper = pollableDataHelpers[name];
helper.addObserver(this);
« no previous file with comments | « no previous file | chrome/browser/resources/net_internals/capture_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698