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

Unified Diff: tracing/tracing/mre/file_handle.html

Issue 2755943002: tracing: Stream processing for some importers (Closed)
Patch Set: review / sync Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tracing/tracing/importer/simple_line_reader.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/mre/file_handle.html
diff --git a/tracing/tracing/mre/file_handle.html b/tracing/tracing/mre/file_handle.html
index 9e04e55c0113eec5278726d43603aca91453b1b0..50b18385ddd3392943cde1a19720124c542648cc 100644
--- a/tracing/tracing/mre/file_handle.html
+++ b/tracing/tracing/mre/file_handle.html
@@ -54,6 +54,7 @@ tr.exportTo('tr.mre', function() {
// TODO(eakuefner): assert startswith file://
FileHandle.call(this, canonicalUrl);
this.urlToLoad = urlToLoad;
+ this.loadAsTraceStream_ = false;
}
URLFileHandle.prototype = {
@@ -66,7 +67,7 @@ tr.exportTo('tr.mre', function() {
load: function() {
try {
- return tr.b.getSync(this.urlToLoad);
+ return tr.b.getSync(this.urlToLoad, this.loadAsTraceStream_);
} catch (ex) {
var err = new Error('Could not open ' + this.urlToLoad);
err.name = 'FileLoadingError';
« no previous file with comments | « tracing/tracing/importer/simple_line_reader.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698