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

Side by Side Diff: chrome/browser/resources/net_internals/dataview.js

Issue 2104012: Fixed a TODO in data export of net-internals, added Chrome version and comman... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * This view displays options for importing/exporting the captured data. Its 6 * This view displays options for importing/exporting the captured data. Its
7 * primarily usefulness is to allow users to copy-paste their data in an easy 7 * primarily usefulness is to allow users to copy-paste their data in an easy
8 * to read format for bug reports. 8 * to read format for bug reports.
9 * 9 *
10 * - Has a button to generate a text report. 10 * - Has a button to generate a text report.
(...skipping 21 matching lines...) Expand all
32 var text = []; 32 var text = [];
33 33
34 // Print some basic information about our environment. 34 // Print some basic information about our environment.
35 text.push('Data exported on: ' + (new Date()).toLocaleString()); 35 text.push('Data exported on: ' + (new Date()).toLocaleString());
36 text.push(''); 36 text.push('');
37 text.push('Number of passively captured events: ' + 37 text.push('Number of passively captured events: ' +
38 g_browser.getAllPassivelyCapturedEvents().length); 38 g_browser.getAllPassivelyCapturedEvents().length);
39 text.push('Number of actively captured events: ' + 39 text.push('Number of actively captured events: ' +
40 g_browser.getAllActivelyCapturedEvents().length); 40 g_browser.getAllActivelyCapturedEvents().length);
41 text.push(''); 41 text.push('');
42 // TODO(eroman): fill this with proper values. 42
43 text.push('Chrome version: ' + 'TODO'); 43 text.push('Chrome version: ' + ClientInfo.version +
44 text.push('Command line switches: ' + 'TODO'); 44 ' (' + ClientInfo.official +
45 ' ' + ClientInfo.cl +
46 ') ' + ClientInfo.version_mod);
47 text.push('Command line switches: ' + ClientInfo.command_line);
45 48
46 text.push(''); 49 text.push('');
47 text.push('----------------------------------------------'); 50 text.push('----------------------------------------------');
48 text.push(' Proxy settings'); 51 text.push(' Proxy settings');
49 text.push('----------------------------------------------'); 52 text.push('----------------------------------------------');
50 text.push(''); 53 text.push('');
51 54
52 text.push(g_browser.proxySettings_.currentData_); 55 text.push(g_browser.proxySettings_.currentData_);
53 56
54 text.push(''); 57 text.push('');
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 /** 192 /**
190 * Format a time ticks count as a timestamp. 193 * Format a time ticks count as a timestamp.
191 */ 194 */
192 DataView.prototype.formatExpirationTime_ = function(timeTicks) { 195 DataView.prototype.formatExpirationTime_ = function(timeTicks) {
193 var d = g_browser.convertTimeTicksToDate(timeTicks); 196 var d = g_browser.convertTimeTicksToDate(timeTicks);
194 var isExpired = d.getTime() < (new Date()).getTime(); 197 var isExpired = d.getTime() < (new Date()).getTime();
195 return 't=' + d.getTime() + (isExpired ? ' [EXPIRED]' : ''); 198 return 't=' + d.getTime() + (isExpired ? ' [EXPIRED]' : '');
196 }; 199 };
197 200
198 201
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/net_internals_ui.cc ('k') | chrome/browser/resources/net_internals/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698