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

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: 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
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();
« no previous file with comments | « no previous file | chrome/browser/resources/net_internals/capture_view.js » ('j') | chrome/browser/resources/net_internals/util.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698