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

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: Created 5 years 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 110d185122a951680f8e308683f43f749e26cbe9..0919aa0bbd24a12ba7457a10cf8c758b58621947 100644
--- a/third_party/WebKit/Source/web/WebKit.cpp
+++ b/third_party/WebKit/Source/web/WebKit.cpp
@@ -133,21 +133,6 @@ v8::Isolate* mainThreadIsolate()
return V8PerIsolateData::mainThreadIsolate();
}
-static double currentTimeFunction()
-{
- return Platform::current()->currentTimeSeconds();
-}
-
-static double monotonicallyIncreasingTimeFunction()
-{
- return Platform::current()->monotonicallyIncreasingTimeSeconds();
-}
-
-static double systemTraceTimeFunction()
-{
- return Platform::current()->systemTraceTime();
-}
-
static void histogramEnumerationFunction(const char* name, int sample, int boundaryValue)
{
Platform::current()->histogramEnumeration(name, sample, boundaryValue);
@@ -177,7 +162,7 @@ void initializeWithoutV8(Platform* platform)
Platform::initialize(platform);
WTF::setRandomSource(cryptographicallyRandomValues);
- WTF::initialize(currentTimeFunction, monotonicallyIncreasingTimeFunction, systemTraceTimeFunction, histogramEnumerationFunction, adjustAmountOfExternalAllocatedMemory);
+ WTF::initialize(histogramEnumerationFunction, adjustAmountOfExternalAllocatedMemory);
WTF::initializeMainThread(callOnMainThreadFunction);
Heap::init();

Powered by Google App Engine
This is Rietveld 408576698