summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webkit_glue.cc
diff options
context:
space:
mode:
authorgavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-16 14:52:30 +0000
committergavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-16 14:52:30 +0000
commitd471190afa7f7ef0b7d19494dd5406c0b0ccb576 (patch)
tree9e27dbbdb4ff30807ec040c4180e84350746255e /webkit/glue/webkit_glue.cc
parent6d97d7d2260c457f891247770be3795aeb3e257c (diff)
downloadchromium_src-d471190afa7f7ef0b7d19494dd5406c0b0ccb576.zip
chromium_src-d471190afa7f7ef0b7d19494dd5406c0b0ccb576.tar.gz
chromium_src-d471190afa7f7ef0b7d19494dd5406c0b0ccb576.tar.bz2
Expose WebCore log channels on the chrome command line
Add --webcore-log-channels=Loading,ResourceLoading to your chrome command line to get WebKit debugging joy. See third_party/WebKit/Source/WebCore/platform/Logging.cpp for a list of log levels. BUG=none TEST=none Review URL: http://codereview.chromium.org/6528016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75117 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webkit_glue.cc')
-rw-r--r--webkit/glue/webkit_glue.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/webkit/glue/webkit_glue.cc b/webkit/glue/webkit_glue.cc
index 6d76c71..ce4bf41 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) {