Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: content/browser/web_contents/

Issue 23007021: Report Javascript Runtime Errors to the Error Console (Closed) Base URL:
Patch Set: Created 7 years, 4 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: content/browser/web_contents/
diff --git a/content/browser/web_contents/ b/content/browser/web_contents/
index 7d999ec0c09d06191eaf7a5df81f225e8253fdfa..5a58cb219ea0f08324abaade9354e8eec5b3d553 100644
--- a/content/browser/web_contents/
+++ b/content/browser/web_contents/
@@ -3427,6 +3427,14 @@ bool WebContentsImpl::AddMessageToConsole(int32 level,
int32 line_no,
const string16& source_id,
const string16& stack_trace) {
+ FOR_EACH_OBSERVER(WebContentsObserver,
Devlin 2013/08/23 20:06:51 Cris - RenderViewHostImpl receives the IPC message
+ observers_,
+ OnMessageAddedToConsole(
+ source_id,
+ message,
+ stack_trace,
+ line_no,
+ static_cast<logging::LogSeverity>(level)));
if (!delegate_)
return false;
return delegate_->AddMessageToConsole(this, level, message, line_no,

Powered by Google App Engine
This is Rietveld 408576698