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

Unified Diff: Source/bindings/v8/ScriptController.cpp

Issue 15861022: Build WTF as dll in component build (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
Index: Source/bindings/v8/ScriptController.cpp
diff --git a/Source/bindings/v8/ScriptController.cpp b/Source/bindings/v8/ScriptController.cpp
index edbba75932c0895f8be90bea80230bd1345654a8..f52ecbc67ea91e5b4a9bef2ca92813265dab8f84 100644
--- a/Source/bindings/v8/ScriptController.cpp
+++ b/Source/bindings/v8/ScriptController.cpp
@@ -81,15 +81,21 @@
#include "wtf/text/CString.h"
#include "wtf/text/StringBuilder.h"
#include "wtf/text/TextPosition.h"
+#include <public/Platform.h>
namespace WebCore {
+static void callOnMainThreadFunction(WTF::MainThreadFunction function, void* context)
+{
+ WebKit::Platform::current()->callOnMainThread(function, context);
+}
+
void ScriptController::initializeThreading()
{
static bool initializedThreading = false;
if (!initializedThreading) {
WTF::initializeThreading();
- WTF::initializeMainThread();
+ WTF::initializeMainThread(callOnMainThreadFunction);
darin (slow to review) 2013/05/25 21:42:43 Why does ScriptController::initializeThreading exi
jamesr 2013/05/26 01:09:10 The only way I can think that this would make sens
initializedThreading = true;
}
}

Powered by Google App Engine
This is Rietveld 408576698