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

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

Issue 298333003: DevTools: Implement console message logging through an extension (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove duplicate logging Created 6 years, 7 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/HeapSnapshotProxy.js
diff --git a/Source/devtools/front_end/profiler/HeapSnapshotProxy.js b/Source/devtools/front_end/profiler/HeapSnapshotProxy.js
index f6871e4a5e84ab0cff46460e5e58a3338ebce69c..dcc5544e8ffa9f0a68d5ea4c5f13abc520ecb21a 100644
--- a/Source/devtools/front_end/profiler/HeapSnapshotProxy.js
+++ b/Source/devtools/front_end/profiler/HeapSnapshotProxy.js
@@ -159,8 +159,8 @@ WebInspector.HeapSnapshotWorkerProxy.prototype = {
}
if (data.error) {
if (data.errorMethodName)
- WebInspector.console.log(WebInspector.UIString("An error happened when a call for method '%s' was requested", data.errorMethodName));
- WebInspector.console.log(data["errorCallStack"]);
+ WebInspector.messageSink.addMessage(WebInspector.UIString("An error occurred when a call to method '%s' was requested", data.errorMethodName));
+ WebInspector.messageSink.addMessage(data["errorCallStack"]);
delete this._callbacks[data.callId];
return;
}
« no previous file with comments | « Source/devtools/front_end/profiler/HeapSnapshotDataGrids.js ('k') | Source/devtools/front_end/profiler/HeapSnapshotView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698