Index: third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js b/third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js |
index 2d9f7eb322e86f02d8a8bafdfa3e5d9209a6c744..edb31f35ba9b287b680087d3f10c9456c9ce290a 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js |
@@ -83,7 +83,7 @@ WebInspector.InplaceFormatterEditorAction.prototype = { |
if (uiSourceCode.isDirty()) |
contentLoaded.call(this, uiSourceCode.workingCopy()); |
else |
- uiSourceCode.requestContent(contentLoaded.bind(this)); |
+ uiSourceCode.requestContent().then(contentLoaded.bind(this)); |
/** |
* @this {WebInspector.InplaceFormatterEditorAction} |