Make sure implementation of InitializeWebKit2() always run on the main thread
[WebKit-https.git] / Source / WebKit2 / Shared / WebKit2Initialize.cpp
index c5637c7..dad1bba 100644 (file)
 #include <wtf/MainThread.h>
 #include <wtf/RunLoop.h>
 
-#if PLATFORM(COCOA)
-#include "WebSystemInterface.h"
-#endif
-#if PLATFORM(IOS)
-#import <WebCore/WebCoreThreadSystemInterface.h>
-#endif
-
 namespace WebKit {
 
+#if !PLATFORM(COCOA)
+
 void InitializeWebKit2()
 {
-#if PLATFORM(COCOA)
-    InitWebCoreSystemInterface();
-#endif
-#if PLATFORM(IOS)
-    InitWebCoreThreadSystemInterface();
-#endif
-
     JSC::initializeThreading();
     RunLoop::initializeMainRunLoop();
 
@@ -59,4 +47,6 @@ void InitializeWebKit2()
 #endif // !LOG_DISABLED || !RELEASE_LOG_DISABLED
 }
 
+#endif // !PLATFORM(COCOA)
+
 } // namespace WebKit