| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 log_util = (function() { | 5 log_util = (function() { |
| 6 'use strict'; | 6 'use strict'; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * Creates a new log dump. |events| is a list of all events, |polledData| is | 9 * Creates a new log dump. |events| is a list of all events, |polledData| is |
| 10 * an object containing the results of each poll, |tabData| is an object | 10 * an object containing the results of each poll, |tabData| is an object |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 } catch (error2) { | 264 } catch (error2) { |
| 265 } | 265 } |
| 266 } | 266 } |
| 267 | 267 |
| 268 if (!parsedDump) | 268 if (!parsedDump) |
| 269 return 'Unable to parse log dump as JSON file.'; | 269 return 'Unable to parse log dump as JSON file.'; |
| 270 return errorString + loadLogDump(parsedDump, fileName); | 270 return errorString + loadLogDump(parsedDump, fileName); |
| 271 } | 271 } |
| 272 | 272 |
| 273 // Exports. | 273 // Exports. |
| 274 return { | 274 return {createLogDumpAsync: createLogDumpAsync, loadLogFile: loadLogFile}; |
| 275 createLogDumpAsync: createLogDumpAsync, | |
| 276 loadLogFile: loadLogFile | |
| 277 }; | |
| 278 })(); | 275 })(); |
| OLD | NEW |