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 d0ca40e022187bf66dd53067ac1d6babda34bed1..01612d00640ef00ac8d759c3c956674f3ce01b04 100644 |
--- a/Source/devtools/front_end/profiler/CPUProfileView.js |
+++ b/Source/devtools/front_end/profiler/CPUProfileView.js |
@@ -799,8 +799,7 @@ WebInspector.CPUProfileHeader.prototype = { |
fileOutputStream.close(); |
} |
if (this._failedToCreateTempFile) { |
- WebInspector.console.log("Failed to open temp file with heap snapshot", |
- WebInspector.ConsoleMessage.MessageLevel.Error); |
+ WebInspector.messageSink.addErrorMessage("Failed to open temp file with heap snapshot"); |
fileOutputStream.close(); |
} else if (this._tempFile) { |
this._tempFile.read(didRead); |