Chromium Code Reviews| Index: third_party/WebKit/Source/modules/geolocation/GeoNotifier.cpp |
| diff --git a/third_party/WebKit/Source/modules/geolocation/GeoNotifier.cpp b/third_party/WebKit/Source/modules/geolocation/GeoNotifier.cpp |
| index 0d78f5b4e2c1e4d3f7c5db00a3b36597d04620ef..2b11b080fec7c7eb7190af7c309655ce6893eadd 100644 |
| --- a/third_party/WebKit/Source/modules/geolocation/GeoNotifier.cpp |
| +++ b/third_party/WebKit/Source/modules/geolocation/GeoNotifier.cpp |
| @@ -4,6 +4,7 @@ |
| #include "modules/geolocation/GeoNotifier.h" |
| +#include "core/dom/TaskRunnerHelper.h" |
| #include "modules/geolocation/Geolocation.h" |
| #include "modules/geolocation/PositionError.h" |
| #include "modules/geolocation/PositionOptions.h" |
| @@ -20,7 +21,9 @@ GeoNotifier::GeoNotifier(Geolocation* geolocation, |
| m_successCallback(successCallback), |
| m_errorCallback(errorCallback), |
| m_options(options), |
| - m_timer(this, &GeoNotifier::timerFired), |
| + m_timer(TaskRunnerHelper::get(TaskType::Timer, geolocation->frame()), |
|
haraken
2017/01/18 23:30:56
Do you have any spec that says this should use the
|
| + this, |
| + &GeoNotifier::timerFired), |
| m_useCachedPosition(false) { |
| DCHECK(m_geolocation); |
| DCHECK(m_successCallback); |