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

Unified Diff: third_party/WebKit/Source/modules/geolocation/GeoNotifier.cpp

Issue 2642863002: Move geolocation timer to frame-specific TaskRunnerTimer. (Closed)
Patch Set: Use MiscPlatformAPI Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/modules/geolocation/GeoNotifier.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9d1027e9186d6fd9c7ef6463c6f7a3754108d7b9 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,10 @@ GeoNotifier::GeoNotifier(Geolocation* geolocation,
m_successCallback(successCallback),
m_errorCallback(errorCallback),
m_options(options),
- m_timer(this, &GeoNotifier::timerFired),
+ m_timer(TaskRunnerHelper::get(TaskType::MiscPlatformAPI,
+ geolocation->frame()),
+ this,
+ &GeoNotifier::timerFired),
m_useCachedPosition(false) {
DCHECK(m_geolocation);
DCHECK(m_successCallback);
« no previous file with comments | « third_party/WebKit/Source/modules/geolocation/GeoNotifier.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698