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

Unified Diff: third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js

Issue 2695123004: DevTools: Only provide static script content to UISourceCode (Closed)
Patch Set: Return null original for snippets Created 3 years, 10 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/workspace/UISourceCode.js
diff --git a/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js b/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
index cf37c6908f6b4a280c0fc50018b39e95c141d596..e37a631366d7b5ae1414308ab85c2f07b01e4df9 100644
--- a/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
+++ b/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
@@ -281,10 +281,7 @@ Workspace.UISourceCode = class extends Common.Object {
* @return {!Promise<?string>}
*/
requestOriginalContent() {
- var callback;
- var promise = new Promise(fulfill => callback = fulfill);
- this._project.requestFileContent(this, callback);
- return promise;
+ return this._project.requestOriginalFileContent(this);
}
/**

Powered by Google App Engine
This is Rietveld 408576698