Index: content/renderer/render_view_impl.cc |
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc |
index 4d450a257ee7376ec8637868fca02047de23225a..3002d78840af4ef82aebfdfcdb4829203b526a85 100644 |
--- a/content/renderer/render_view_impl.cc |
+++ b/content/renderer/render_view_impl.cc |
@@ -2414,12 +2414,22 @@ void RenderViewImpl::didAddMessageToConsole( |
NOTREACHED(); |
} |
+ if (shouldReportDetailedMessageForSource(source_name)) { |
+ FOR_EACH_OBSERVER( |
+ RenderViewObserver, |
+ observers_, |
+ DetailedConsoleMessageAdded(message.text, |
+ source_name, |
+ stack_trace, |
+ source_line, |
+ static_cast<int32>(log_severity))); |
+ } |
+ |
Send(new ViewHostMsg_AddMessageToConsole(routing_id_, |
static_cast<int32>(log_severity), |
message.text, |
static_cast<int32>(source_line), |
- source_name, |
- stack_trace)); |
+ source_name)); |
} |
void RenderViewImpl::printPage(WebFrame* frame) { |