Commit 259676ac authored by michaeln@google.com's avatar michaeln@google.com

Temporary fix until WebKit::initialize does this for us.

Review URL: http://codereview.chromium.org/7054002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86722 0039d316-1c4b-4281-b951-d872f2087c98
parent c3d4593f
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include "content/browser/in_process_webkit/browser_webkitclient_impl.h" #include "content/browser/in_process_webkit/browser_webkitclient_impl.h"
#include "content/common/content_switches.h" #include "content/common/content_switches.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h"
#include "webkit/glue/webkit_glue.h" #include "webkit/glue/webkit_glue.h"
WebKitThread::WebKitThread() { WebKitThread::WebKitThread() {
...@@ -50,6 +51,10 @@ void WebKitThread::InternalWebKitThread::Init() { ...@@ -50,6 +51,10 @@ void WebKitThread::InternalWebKitThread::Init() {
webkit_glue::EnableWebCoreLogChannels( webkit_glue::EnableWebCoreLogChannels(
CommandLine::ForCurrentProcess()->GetSwitchValueASCII( CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kWebCoreLogChannels)); switches::kWebCoreLogChannels));
// Exercise WebSecurityOrigin to get its underlying statics initialized.
// TODO(michaeln): remove this when the following is landed.
// https://bugs.webkit.org/show_bug.cgi?id=61145
WebKit::WebSecurityOrigin::create(GURL("http://chromium.org"));
// If possible, post initialization tasks to this thread (rather than doing // If possible, post initialization tasks to this thread (rather than doing
// them now) so we don't block the UI thread any longer than we have to. // them now) so we don't block the UI thread any longer than we have to.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment