| Index: third_party/WebKit/Source/devtools/front_end/network/RequestResponseView.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/network/RequestResponseView.js b/third_party/WebKit/Source/devtools/front_end/network/RequestResponseView.js
|
| index 18ad5134b83377cb3019ba02acbaaa9e40c9ebde..b68114a0106b35c8eb6deed86dd61dd08bee1703 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/network/RequestResponseView.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/network/RequestResponseView.js
|
| @@ -119,9 +119,9 @@ WebInspector.RequestResponseView.ContentProvider.prototype = {
|
|
|
| /**
|
| * @override
|
| - * @param {function(?string)} callback
|
| + * @return {!Promise<?string>}
|
| */
|
| - requestContent: function(callback)
|
| + requestContent: function()
|
| {
|
| /**
|
| * @param {?string} content
|
| @@ -129,10 +129,11 @@ WebInspector.RequestResponseView.ContentProvider.prototype = {
|
| */
|
| function decodeContent(content)
|
| {
|
| - callback(this._request.contentEncoded ? window.atob(content || "") : content);
|
| + return this._request.contentEncoded ? window.atob(content || "") : content;
|
| }
|
|
|
| - this._request.requestContent(decodeContent.bind(this));
|
| + return this._request.requestContent()
|
| + .then(decodeContent.bind(this));
|
| },
|
|
|
| /**
|
|
|