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

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: rebaselined 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 f9d5a1c2a01dab1284ec47d97826663927076d80..10bd4c470424cf1bb5d8f4781dfb7345681fd43b 100644
--- a/Source/devtools/front_end/profiler/CPUProfileView.js
+++ b/Source/devtools/front_end/profiler/CPUProfileView.js
@@ -745,7 +745,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