Index: webkit/glue/chrome_client_impl.cc |
=================================================================== |
--- webkit/glue/chrome_client_impl.cc (revision 13234) |
+++ webkit/glue/chrome_client_impl.cc (working copy) |
@@ -33,6 +33,7 @@ |
#include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" |
#include "third_party/WebKit/WebKit/chromium/public/WebKit.h" |
#include "webkit/glue/glue_util.h" |
+#include "webkit/glue/webdevtoolsagent_impl.h" |
#include "webkit/glue/webframe_impl.h" |
#include "webkit/glue/webkit_glue.h" |
#include "webkit/glue/weburlrequest_impl.h" |
@@ -286,6 +287,10 @@ |
delegate->AddMessageToConsole(webview_, wstr_message, |
line_no, wstr_source_id); |
} |
+ WebDevToolsAgentImpl* devtools_agent = webview_->GetWebDevToolsAgentImpl(); |
+ if (devtools_agent) { |
+ devtools_agent->AddMessageToConsole(message, source_id, line_no); |
+ } |
} |
bool ChromeClientImpl::canRunBeforeUnloadConfirmPanel() { |