| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |