| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright 2016 The Chromium Authors. All rights reserved. | 3 Copyright 2016 The Chromium Authors. All rights reserved. |
| 4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
| 5 found in the LICENSE file. | 5 found in the LICENSE file. |
| 6 --> | 6 --> |
| 7 <link rel="import" href="/tracing/base/base.html"> | 7 <link rel="import" href="/tracing/base/base.html"> |
| 8 | 8 |
| 9 <script> | 9 <script> |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 }; | 22 }; |
| 23 | 23 |
| 24 var isBinary = filename.endsWith('.gz') || filename.endsWith('.zip'); | 24 var isBinary = filename.endsWith('.gz') || filename.endsWith('.zip'); |
| 25 if (isBinary) | 25 if (isBinary) |
| 26 reader.readAsArrayBuffer(fileBlob); | 26 reader.readAsArrayBuffer(fileBlob); |
| 27 else | 27 else |
| 28 reader.readAsText(fileBlob); | 28 reader.readAsText(fileBlob); |
| 29 }); | 29 }); |
| 30 } | 30 } |
| 31 return { | 31 return { |
| 32 readFile: readFile | 32 readFile, |
| 33 }; | 33 }; |
| 34 }); | 34 }); |
| 35 </script> | 35 </script> |
| OLD | NEW |