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

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

Issue 396993003: DevTools: get rid of WebInspector.cssModel, use target models instead (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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: Source/devtools/front_end/profiler/HeapSnapshotView.js
diff --git a/Source/devtools/front_end/profiler/HeapSnapshotView.js b/Source/devtools/front_end/profiler/HeapSnapshotView.js
index ec1392020028689c2ce09705b388b2198a8660f7..e7b8a5a88293606df045a6627d1e45dc467cb4d3 100644
--- a/Source/devtools/front_end/profiler/HeapSnapshotView.js
+++ b/Source/devtools/front_end/profiler/HeapSnapshotView.js
@@ -904,7 +904,7 @@ WebInspector.HeapSnapshotView.prototype = {
function didHighlightObject(found)
{
if (!found)
- WebInspector.console.addErrorMessage("Cannot find corresponding heap snapshot node", true);
+ WebInspector.console.error("Cannot find corresponding heap snapshot node");
}
},
@@ -1583,7 +1583,7 @@ WebInspector.HeapProfileHeader.prototype = {
if (!accepted)
return;
if (this._failedToCreateTempFile) {
- WebInspector.console.addErrorMessage("Failed to open temp file with heap snapshot");
+ WebInspector.console.error("Failed to open temp file with heap snapshot");
fileOutputStream.close();
} else if (this._tempFile) {
var delegate = new WebInspector.SaveSnapshotOutputStreamDelegate(this);
@@ -1707,7 +1707,7 @@ WebInspector.SaveSnapshotOutputStreamDelegate.prototype = {
*/
onError: function(reader, event)
{
- WebInspector.console.addErrorMessage("Failed to read heap snapshot from temp file: " + /** @type {!ErrorEvent} */ (event).message);
+ WebInspector.console.error("Failed to read heap snapshot from temp file: " + /** @type {!ErrorEvent} */ (event).message);
this.onTransferFinished();
}
}

Powered by Google App Engine
This is Rietveld 408576698