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

Unified Diff: third_party/WebKit/Source/devtools/front_end/network/HARWriter.js

Issue 1609973002: DevTools: promisify ContentProvider.requestContent and all its clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 11 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
Index: third_party/WebKit/Source/devtools/front_end/network/HARWriter.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/HARWriter.js b/third_party/WebKit/Source/devtools/front_end/network/HARWriter.js
index a5ed27a5ce27e642d29933feaa87e294d1401ab6..a460f03ca3dc5d0c4d3509e7c2ec4179e0234cfa 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/HARWriter.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/HARWriter.js
@@ -51,7 +51,7 @@ WebInspector.HARWriter.prototype = {
var content = requests[i].content;
if (typeof content === "undefined" && requests[i].finished) {
++this._pendingRequests;
- requests[i].requestContent(this._onContentAvailable.bind(this, entries[i], requests[i]));
+ requests[i].requestContent().then(this._onContentAvailable.bind(this, entries[i], requests[i]));
} else if (content !== null)
this._setEntryContent(entries[i], requests[i]);
}

Powered by Google App Engine
This is Rietveld 408576698