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

Unified Diff: Source/devtools/front_end/profiler/CPUProfileView.js

Issue 705063004: DevTools: Promisify WebInspector.TempFile (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: a few more promises were added Created 6 years, 1 month 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: Source/devtools/front_end/profiler/CPUProfileView.js
diff --git a/Source/devtools/front_end/profiler/CPUProfileView.js b/Source/devtools/front_end/profiler/CPUProfileView.js
index 9b11f0962c21124b62eae2a6053f7ac128ac9e83..2055edaa46209eb763d6d86f0b2d2d9fd30e0c67 100644
--- a/Source/devtools/front_end/profiler/CPUProfileView.js
+++ b/Source/devtools/front_end/profiler/CPUProfileView.js
@@ -848,7 +848,8 @@ WebInspector.CPUProfileHeader.prototype = {
{
this._writeToTempFile(tempFile, serializedData);
}
- new WebInspector.TempFile("cpu-profiler", String(this.uid), didCreateTempFile.bind(this));
+ WebInspector.TempFile.create("cpu-profiler", String(this.uid))
+ .then(didCreateTempFile.bind(this));
},
/**

Powered by Google App Engine
This is Rietveld 408576698