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

Unified Diff: chrome/browser/resources/net_internals/service_providers_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/service_providers_view.js
===================================================================
--- chrome/browser/resources/net_internals/service_providers_view.js (revision 95298)
+++ chrome/browser/resources/net_internals/service_providers_view.js (working copy)
@@ -10,14 +10,15 @@
* information. For each namespace provider, shows the name and
* whether or not it's active.
*/
-
var ServiceProvidersView = (function() {
- const TAB_ID = 'tab-handle-service-providers';
+ 'use strict';
+ var TAB_ID = 'tab-handle-service-providers';
+
// IDs for special HTML elements in service_providers_view.html
- const MAIN_BOX_ID = 'service-providers-view-tab-content';
- const SERVICE_PROVIDERS_TBODY_ID = 'service-providers-view-tbody';
- const NAMESPACE_PROVIDERS_TBODY_ID =
+ var MAIN_BOX_ID = 'service-providers-view-tab-content';
+ var SERVICE_PROVIDERS_TBODY_ID = 'service-providers-view-tbody';
+ var NAMESPACE_PROVIDERS_TBODY_ID =
'service-providers-view-namespace-providers-tbody';
// We inherit from DivView.
@@ -27,6 +28,8 @@
* @constructor
*/
function ServiceProvidersView() {
+ assertFirstConstructorCall(ServiceProvidersView);
+
// Call superclass's constructor.
superClass.call(this, MAIN_BOX_ID);

Powered by Google App Engine
This is Rietveld 408576698