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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.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/sources/NavigatorView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js b/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
index 957b5baea9d01e8a6a2c06d234e91fb57f678dd4..1a0064217b4a120d9ebd6046023a9029b7a64e47 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
@@ -634,7 +634,7 @@ WebInspector.NavigatorView.prototype = {
}
if (uiSourceCodeToCopy)
- uiSourceCodeToCopy.requestContent(contentLoaded.bind(this));
+ uiSourceCodeToCopy.requestContent().then(contentLoaded.bind(this));
else
createFile.call(this);
@@ -865,7 +865,7 @@ WebInspector.NavigatorSourceTreeElement.prototype = {
_onmousedown: function(event)
{
if (event.which === 1) // Warm-up data for drag'n'drop
- this._uiSourceCode.requestContent(callback.bind(this));
+ this._uiSourceCode.requestContent().then(callback.bind(this));
/**
* @param {?string} content
* @this {WebInspector.NavigatorSourceTreeElement}

Powered by Google App Engine
This is Rietveld 408576698