Index: third_party/WebKit/Source/devtools/front_end/snippets/ScriptSnippetModel.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/snippets/ScriptSnippetModel.js b/third_party/WebKit/Source/devtools/front_end/snippets/ScriptSnippetModel.js |
index 6efb01f28cf37b42ba89cf05aa2fa273ad646d01..6dd31c0c020ee92dab7d38fdb528497478814c6a 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/snippets/ScriptSnippetModel.js |
+++ b/third_party/WebKit/Source/devtools/front_end/snippets/ScriptSnippetModel.js |
@@ -553,11 +553,11 @@ WebInspector.SnippetContentProvider.prototype = { |
/** |
* @override |
- * @param {function(?string)} callback |
+ * @return {!Promise<?string>} |
*/ |
- requestContent: function(callback) |
+ requestContent: function() |
{ |
- callback(this._snippet.content); |
+ return Promise.resolve(/** @type {?string} */(this._snippet.content)); |
}, |
/** |