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

Unified Diff: sky/engine/web/Sky.cpp

Issue 691493004: Remove callOnMainThread (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 | « sky/engine/testing/platform/platform_impl.cc ('k') | sky/engine/wtf/MainThread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/web/Sky.cpp
diff --git a/sky/engine/web/Sky.cpp b/sky/engine/web/Sky.cpp
index 5441aed79e0d1e91fe4aac5e01f82e37a8cc9128..68fa1986e0775cb65117e51281c189291c852c53 100644
--- a/sky/engine/web/Sky.cpp
+++ b/sky/engine/web/Sky.cpp
@@ -149,11 +149,6 @@ static void cryptographicallyRandomValues(unsigned char* buffer, size_t length)
base::RandBytes(buffer, length);
}
-static void callOnMainThreadFunction(WTF::MainThreadFunction function, void* context)
-{
- Platform::current()->callOnMainThread(function, context);
-}
-
void initializeWithoutV8(Platform* platform)
{
ASSERT(!s_webKitInitialized);
@@ -164,7 +159,7 @@ void initializeWithoutV8(Platform* platform)
WTF::setRandomSource(cryptographicallyRandomValues);
WTF::initialize(currentTimeFunction, monotonicallyIncreasingTimeFunction);
- WTF::initializeMainThread(callOnMainThreadFunction);
+ WTF::initializeMainThread();
DEFINE_STATIC_LOCAL(CoreInitializer, initializer, ());
initializer.init();
« no previous file with comments | « sky/engine/testing/platform/platform_impl.cc ('k') | sky/engine/wtf/MainThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698