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

Side by Side Diff: tracing/tracing/ui/base/file.html

Issue 2526613002: Return short-hand object literals to exportTo. (Closed)
Patch Set: . Created 4 years 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
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698