diff options
author | gavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-16 14:52:30 +0000 |
---|---|---|
committer | gavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-16 14:52:30 +0000 |
commit | d471190afa7f7ef0b7d19494dd5406c0b0ccb576 (patch) | |
tree | 9e27dbbdb4ff30807ec040c4180e84350746255e /chrome/worker | |
parent | 6d97d7d2260c457f891247770be3795aeb3e257c (diff) | |
download | chromium_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 'chrome/worker')
-rw-r--r-- | chrome/worker/worker_thread.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/worker/worker_thread.cc b/chrome/worker/worker_thread.cc index 90bf9b6..951a80f 100644 --- a/chrome/worker/worker_thread.cc +++ b/chrome/worker/worker_thread.cc @@ -20,6 +20,7 @@ #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" +#include "webkit/glue/webkit_glue.h" using WebKit::WebRuntimeFeatures; @@ -41,6 +42,9 @@ WorkerThread::WorkerThread() { const CommandLine& command_line = *CommandLine::ForCurrentProcess(); + webkit_glue::EnableWebCoreLogChannels( + command_line.GetSwitchValueASCII(switches::kWebCoreLogChannels)); + WebKit::WebRuntimeFeatures::enableDatabase( !command_line.HasSwitch(switches::kDisableDatabases)); |