Chromium Code Reviews| Index: third_party/WebKit/Source/modules/time_zone_monitor/TimeZoneMonitorClient.cpp |
| diff --git a/third_party/WebKit/Source/modules/time_zone_monitor/TimeZoneMonitorClient.cpp b/third_party/WebKit/Source/modules/time_zone_monitor/TimeZoneMonitorClient.cpp |
| index b5704a7dbd4387822a800d6e9b3d15e17a685d3f..fdf06bad37bdae2c226266e57eb1027c79516c67 100644 |
| --- a/third_party/WebKit/Source/modules/time_zone_monitor/TimeZoneMonitorClient.cpp |
| +++ b/third_party/WebKit/Source/modules/time_zone_monitor/TimeZoneMonitorClient.cpp |
| @@ -7,6 +7,7 @@ |
| #include "bindings/core/v8/V8Binding.h" |
| #include "bindings/core/v8/V8PerIsolateData.h" |
| #include "core/dom/ExecutionContext.h" |
| +#include "core/dom/TaskRunnerHelper.h" |
| #include "core/workers/WorkerBackingThread.h" |
| #include "core/workers/WorkerOrWorkletGlobalScope.h" |
| #include "core/workers/WorkerThread.h" |
| @@ -70,9 +71,10 @@ void TimeZoneMonitorClient::OnTimeZoneChange(const String& time_zone_info) { |
| // among multiple WorkerThreads. |
| if (posted.Contains(&thread->GetWorkerBackingThread())) |
| continue; |
| - thread->PostTask(BLINK_FROM_HERE, |
| - CrossThreadBind(&NotifyTimezoneChangeOnWorkerThread, |
| - WTF::CrossThreadUnretained(thread))); |
| + TaskRunnerHelper::Get(TaskType::kUnthrottled, thread) |
|
haraken
2017/04/13 07:03:36
Why kUnthrottled?
nhiroki
2017/04/13 08:23:50
Hm... this should be kUnspecedTimer. Replaced.
|
| + ->PostTask(BLINK_FROM_HERE, |
| + CrossThreadBind(&NotifyTimezoneChangeOnWorkerThread, |
| + WTF::CrossThreadUnretained(thread))); |
| posted.insert(&thread->GetWorkerBackingThread()); |
| } |
| } |