Index: chrome/renderer/render_thread.cc |
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc |
index fc74a39a0696773e8f541cba2186426aed25914b..d2df9d9b75450f1e4294d2f276fd8a1d05336357 100644 |
--- a/chrome/renderer/render_thread.cc |
+++ b/chrome/renderer/render_thread.cc |
@@ -95,6 +95,7 @@ |
#include "webkit/extensions/v8/benchmarking_extension.h" |
#include "webkit/extensions/v8/gears_extension.h" |
#include "webkit/extensions/v8/playback_extension.h" |
+#include "webkit/glue/webkit_glue.h" |
#include "v8/include/v8.h" |
#if defined(OS_WIN) |
@@ -865,6 +866,9 @@ void RenderThread::EnsureWebKitInitialized() { |
const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
+ webkit_glue::EnableWebCoreLogChannels( |
+ command_line.GetSwitchValueASCII(switches::kWebCoreLogChannels)); |
+ |
// chrome: pages should not be accessible by normal content, and should |
// also be unable to script anything but themselves (to help limit the damage |
// that a corrupt chrome: page could cause). |