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

Unified Diff: chrome/browser/resources/net_internals/http_cache_view.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
Index: chrome/browser/resources/net_internals/http_cache_view.js
===================================================================
--- chrome/browser/resources/net_internals/http_cache_view.js (revision 95298)
+++ chrome/browser/resources/net_internals/http_cache_view.js (working copy)
@@ -5,11 +5,12 @@
/**
* This view displays information on the HTTP cache.
*/
+var HttpCacheView = (function() {
+ 'use strict';
-var HttpCacheView = (function() {
// IDs for special HTML elements in http_cache_view.html
- const MAIN_BOX_ID = 'http-cache-view-tab-content';
- const STATS_DIV_ID = 'http-cache-view-cache-stats';
+ var MAIN_BOX_ID = 'http-cache-view-tab-content';
+ var STATS_DIV_ID = 'http-cache-view-cache-stats';
// We inherit from DivView.
var superClass = DivView;
@@ -18,6 +19,8 @@
* @constructor
*/
function HttpCacheView() {
+ assertFirstConstructorCall(HttpCacheView);
+
// Call superclass's constructor.
superClass.call(this, MAIN_BOX_ID);
« no previous file with comments | « chrome/browser/resources/net_internals/hsts_view.js ('k') | chrome/browser/resources/net_internals/http_throttling_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698