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

Unified Diff: third_party/WebKit/Source/web/WebKit.cpp

Issue 1550563002: Blink Platform: Remove time functions from Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merrrge agaaain. Created 4 years, 10 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: third_party/WebKit/Source/web/WebKit.cpp
diff --git a/third_party/WebKit/Source/web/WebKit.cpp b/third_party/WebKit/Source/web/WebKit.cpp
index 52896830db64193f7c4426ad44a3b023e0cca86e..a556de64e67b3fafc702b5e589d495562cc38329 100644
--- a/third_party/WebKit/Source/web/WebKit.cpp
+++ b/third_party/WebKit/Source/web/WebKit.cpp
@@ -134,16 +134,6 @@ v8::Isolate* mainThreadIsolate()
return V8PerIsolateData::mainThreadIsolate();
}
-static double currentTimeFunction()
-{
- return Platform::current()->currentTimeSeconds();
-}
-
-static double monotonicallyIncreasingTimeFunction()
-{
- return Platform::current()->monotonicallyIncreasingTimeSeconds();
-}
-
static void maxObservedSizeFunction(size_t sizeInMB)
{
const size_t supportedMaxSizeInMB = 4 * 1024;
@@ -175,7 +165,7 @@ void initializeWithoutV8(Platform* platform)
ASSERT(platform);
Platform::initialize(platform);
- WTF::initialize(currentTimeFunction, monotonicallyIncreasingTimeFunction, adjustAmountOfExternalAllocatedMemory);
+ WTF::initialize(adjustAmountOfExternalAllocatedMemory);
WTF::initializeMainThread(callOnMainThreadFunction);
Heap::init();

Powered by Google App Engine
This is Rietveld 408576698