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

Unified Diff: third_party/WebKit/Source/devtools/front_end/source_frame/FontView.js

Issue 1609973002: DevTools: promisify ContentProvider.requestContent and all its clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit 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/source_frame/FontView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/source_frame/FontView.js b/third_party/WebKit/Source/devtools/front_end/source_frame/FontView.js
index 77f2c7f2d9220d1577cf5f75cf816f713e6b1f6e..053de694c5cca6e84e8de1ace8d90ccc4733e52d 100644
--- a/third_party/WebKit/Source/devtools/front_end/source_frame/FontView.js
+++ b/third_party/WebKit/Source/devtools/front_end/source_frame/FontView.js
@@ -77,7 +77,7 @@ WebInspector.FontView.prototype = {
var uniqueFontName = "WebInspectorFontPreview" + (++WebInspector.FontView._fontId);
this.fontStyleElement = createElement("style");
- this._contentProvider.requestContent(this._onFontContentLoaded.bind(this, uniqueFontName));
+ this._contentProvider.requestContent().then(this._onFontContentLoaded.bind(this, uniqueFontName));
this.element.appendChild(this.fontStyleElement);
var fontPreview = createElement("div");

Powered by Google App Engine
This is Rietveld 408576698