Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1486)

Unified Diff: content/browser/in_process_webkit/webkit_thread.cc

Issue 7054002: Temporary fix until WebKit::initialize does this for us. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/in_process_webkit/webkit_thread.cc
===================================================================
--- content/browser/in_process_webkit/webkit_thread.cc (revision 86470)
+++ content/browser/in_process_webkit/webkit_thread.cc (working copy)
@@ -8,6 +8,7 @@
#include "content/browser/in_process_webkit/browser_webkitclient_impl.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/WebSecurityOrigin.h"
#include "webkit/glue/webkit_glue.h"
WebKitThread::WebKitThread() {
@@ -50,6 +51,10 @@
webkit_glue::EnableWebCoreLogChannels(
CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
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
// them now) so we don't block the UI thread any longer than we have to.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698