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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js

Issue 1609973002: DevTools: promisify ContentProvider.requestContent and all its clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaseline 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/bindings/ResourceScriptMapping.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js
index f8dd6d2a066efe5557a7fbe94381d1677f8023fc..72c2ef5c28258982ef027a7293dedb60b800b5c2 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js
@@ -422,13 +422,16 @@ WebInspector.ResourceScriptFile.prototype = {
return this._isMergingToVM;
},
+ /**
+ * @return {!Promise}
+ */
checkMapping: function()
{
if (!this._script)
- return;
+ return Promise.resolve();
if (typeof this._scriptSource !== "undefined")
- return;
- this._script.requestContent(callback.bind(this));
+ return Promise.resolve();
+ return this._script.requestContent().then(callback.bind(this));
/**
* @param {?string} source

Powered by Google App Engine
This is Rietveld 408576698