Index: webkit/glue/webkit_glue.cc |
diff --git a/webkit/glue/webkit_glue.cc b/webkit/glue/webkit_glue.cc |
index 6d76c71cdae35b8092b52e24f76ab0014a15fdbb..ce4bf410190efea1dfa3b848b155dd5205a87c9f 100644 |
--- a/webkit/glue/webkit_glue.cc |
+++ b/webkit/glue/webkit_glue.cc |
@@ -15,6 +15,7 @@ |
#include "base/logging.h" |
#include "base/scoped_ptr.h" |
#include "base/string_piece.h" |
+#include "base/string_tokenizer.h" |
#include "base/string_util.h" |
#include "base/stringprintf.h" |
#include "base/sys_info.h" |
@@ -80,8 +81,13 @@ void SetJavaScriptFlags(const std::string& str) { |
#endif |
} |
-void EnableWebCoreNotImplementedLogging() { |
- WebKit::enableLogChannel("NotYetImplemented"); |
+void EnableWebCoreLogChannels(const std::string& channels) { |
+ if (channels.empty()) |
+ return; |
+ StringTokenizer t(channels, ", "); |
+ while (t.GetNext()) { |
+ WebKit::enableLogChannel(t.token().c_str()); |
+ } |
} |
string16 DumpDocumentText(WebFrame* web_frame) { |