Index: third_party/WebKit/Source/platform/heap/HeapPage.cpp |
diff --git a/third_party/WebKit/Source/platform/heap/HeapPage.cpp b/third_party/WebKit/Source/platform/heap/HeapPage.cpp |
index 338b6828fcea0bcbf84a4acb2cf6be99a8f0f4a0..161dbccbc5f26495ad4a179afb3ae2d95271b0fe 100644 |
--- a/third_party/WebKit/Source/platform/heap/HeapPage.cpp |
+++ b/third_party/WebKit/Source/platform/heap/HeapPage.cpp |
@@ -46,6 +46,7 @@ |
#include "public/platform/WebProcessMemoryDump.h" |
#include "wtf/Assertions.h" |
#include "wtf/ContainerAnnotations.h" |
+#include "wtf/CurrentTime.h" |
#include "wtf/LeakAnnotations.h" |
#include "wtf/MainThread.h" |
#include "wtf/PageAllocator.h" |
@@ -337,7 +338,7 @@ bool BaseHeap::lazySweepWithDeadline(double deadlineSeconds) |
while (m_firstUnsweptPage) { |
sweepUnsweptPage(); |
if (pageCount % deadlineCheckInterval == 0) { |
- if (deadlineSeconds <= Platform::current()->monotonicallyIncreasingTimeSeconds()) { |
+ if (deadlineSeconds <= monotonicallyIncreasingTime()) { |
// Deadline has come. |
Heap::reportMemoryUsageForTracing(); |
return !m_firstUnsweptPage; |