| Index: third_party/WebKit/Source/devtools/front_end/sdk/ContentProviders.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/ContentProviders.js b/third_party/WebKit/Source/devtools/front_end/sdk/ContentProviders.js
|
| index f743434ded65b0a2e3bcab98d23cbec59023b0dd..db9eebe8510448458815e35fad5aa180159f7cfb 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sdk/ContentProviders.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sdk/ContentProviders.js
|
| @@ -61,11 +61,14 @@ WebInspector.CompilerSourceMappingContentProvider.prototype = {
|
|
|
| /**
|
| * @override
|
| - * @param {function(?string)} callback
|
| + * @return {!Promise<?string>}
|
| */
|
| - requestContent: function(callback)
|
| + requestContent: function()
|
| {
|
| + var callback;
|
| + var promise = new Promise(fulfill => callback = fulfill);
|
| WebInspector.multitargetNetworkManager.loadResource(this._sourceURL, contentLoaded.bind(this));
|
| + return promise;
|
|
|
| /**
|
| * @param {number} statusCode
|
| @@ -94,7 +97,7 @@ WebInspector.CompilerSourceMappingContentProvider.prototype = {
|
| */
|
| searchInContent: function(query, caseSensitive, isRegex, callback)
|
| {
|
| - this.requestContent(contentLoaded);
|
| + this.requestContent().then(contentLoaded);
|
|
|
| /**
|
| * @param {?string} content
|
|
|