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

Unified Diff: chrome/browser/resources/net_internals/export_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/export_view.js
===================================================================
--- chrome/browser/resources/net_internals/export_view.js (revision 95298)
+++ chrome/browser/resources/net_internals/export_view.js (working copy)
@@ -4,22 +4,28 @@
/**
* This view displays options for exporting the captured data.
- * @constructor
*/
var ExportView = (function() {
+ 'use strict';
+
// IDs for special HTML elements in export_view.html
- const MAIN_BOX_ID = 'export-view-tab-content';
- const DOWNLOAD_IFRAME_ID = 'export-view-download-iframe';
- const SAVE_FILE_BUTTON_ID = 'export-view-save-log-file';
- const SAVE_STATUS_TEXT_ID = 'export-view-save-status-text';
- const SECURITY_STRIPPING_CHECKBOX_ID =
+ var MAIN_BOX_ID = 'export-view-tab-content';
+ var DOWNLOAD_IFRAME_ID = 'export-view-download-iframe';
+ var SAVE_FILE_BUTTON_ID = 'export-view-save-log-file';
+ var SAVE_STATUS_TEXT_ID = 'export-view-save-status-text';
+ var SECURITY_STRIPPING_CHECKBOX_ID =
'export-view-security-stripping-checkbox';
- const USER_COMMENTS_TEXT_AREA_ID = 'export-view-user-comments';
+ var USER_COMMENTS_TEXT_AREA_ID = 'export-view-user-comments';
// We inherit from DivView.
var superClass = DivView;
+ /**
+ * @constructor
+ */
function ExportView() {
+ assertFirstConstructorCall(ExportView);
+
// Call superclass's constructor.
superClass.call(this, MAIN_BOX_ID);
« no previous file with comments | « chrome/browser/resources/net_internals/events_view.js ('k') | chrome/browser/resources/net_internals/hsts_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698