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

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

Issue 887883002: WTF should get time from base directly (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/platform/testing/RunAllTests.cpp ('k') | sky/engine/wtf/CurrentTime.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 b95252f0d474e4b05be94b50eda2fa8a3078a2d2..de85c744d42b1314f80feeda602eb1cd050b456b 100644
--- a/sky/engine/web/Sky.cpp
+++ b/sky/engine/web/Sky.cpp
@@ -132,16 +132,6 @@ v8::Isolate* mainThreadIsolate()
return V8PerIsolateData::mainThreadIsolate();
}
-static double currentTimeFunction()
-{
- return Platform::current()->currentTime();
-}
-
-static double monotonicallyIncreasingTimeFunction()
-{
- return Platform::current()->monotonicallyIncreasingTime();
-}
-
static void cryptographicallyRandomValues(unsigned char* buffer, size_t length)
{
base::RandBytes(buffer, length);
@@ -156,7 +146,7 @@ void initializeWithoutV8(Platform* platform)
Platform::initialize(platform);
WTF::setRandomSource(cryptographicallyRandomValues);
- WTF::initialize(currentTimeFunction, monotonicallyIncreasingTimeFunction);
+ WTF::initialize();
WTF::initializeMainThread();
DEFINE_STATIC_LOCAL(CoreInitializer, initializer, ());
« no previous file with comments | « sky/engine/platform/testing/RunAllTests.cpp ('k') | sky/engine/wtf/CurrentTime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698