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

Unified Diff: third_party/WebKit/Source/platform/WebThreadSupportingGC.h

Issue 2876513002: Use WTF::TimeDelta to specify delays on WebTaskRunner (Closed)
Patch Set: mac fix Created 3 years, 7 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/platform/WebThreadSupportingGC.h
diff --git a/third_party/WebKit/Source/platform/WebThreadSupportingGC.h b/third_party/WebKit/Source/platform/WebThreadSupportingGC.h
index 6a6273e9f5af05e6eb2754cb73bb19cdfa1b55fb..a0d01e2adc61f1d8c53370e4f18a6ee897e7274e 100644
--- a/third_party/WebKit/Source/platform/WebThreadSupportingGC.h
+++ b/third_party/WebKit/Source/platform/WebThreadSupportingGC.h
@@ -40,9 +40,9 @@ class PLATFORM_EXPORT WebThreadSupportingGC final {
void PostDelayedTask(const WebTraceLocation& location,
std::unique_ptr<WTF::Closure> task,
- long long delay_ms) {
+ TimeDelta delay) {
thread_->GetWebTaskRunner()->PostDelayedTask(location, std::move(task),
- delay_ms);
+ delay);
}
void PostTask(const WebTraceLocation& location,
@@ -52,9 +52,9 @@ class PLATFORM_EXPORT WebThreadSupportingGC final {
void PostDelayedTask(const WebTraceLocation& location,
std::unique_ptr<CrossThreadClosure> task,
- long long delay_ms) {
+ TimeDelta delay) {
thread_->GetWebTaskRunner()->PostDelayedTask(location, std::move(task),
- delay_ms);
+ delay);
}
bool IsCurrentThread() const { return thread_->IsCurrentThread(); }

Powered by Google App Engine
This is Rietveld 408576698