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

Unified Diff: Source/modules/geolocation/Geolocation.cpp

Issue 189833009: Trace where timers were scheduled in Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 9 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: Source/modules/geolocation/Geolocation.cpp
diff --git a/Source/modules/geolocation/Geolocation.cpp b/Source/modules/geolocation/Geolocation.cpp
index 066ce03b12b1e50bc92c4d16592b3192a365cc20..00f6acabbda7bea92e93a592284a73323bee3169 100644
--- a/Source/modules/geolocation/Geolocation.cpp
+++ b/Source/modules/geolocation/Geolocation.cpp
@@ -110,13 +110,13 @@ void Geolocation::GeoNotifier::setFatalError(PassRefPtrWillBeRawPtr<PositionErro
m_fatalError = error;
// An existing timer may not have a zero timeout.
m_timer.stop();
- m_timer.startOneShot(0);
+ m_timer.startOneShot(0, FROM_HERE);
}
void Geolocation::GeoNotifier::setUseCachedPosition()
{
m_useCachedPosition = true;
- m_timer.startOneShot(0);
+ m_timer.startOneShot(0, FROM_HERE);
}
bool Geolocation::GeoNotifier::hasZeroTimeout() const
@@ -143,7 +143,7 @@ void Geolocation::GeoNotifier::runErrorCallback(PositionError* error)
void Geolocation::GeoNotifier::startTimerIfNeeded()
{
if (m_options->hasTimeout())
- m_timer.startOneShot(m_options->timeout() / 1000.0);
+ m_timer.startOneShot(m_options->timeout() / 1000.0, FROM_HERE);
}
void Geolocation::GeoNotifier::stopTimer()
« no previous file with comments | « Source/modules/encryptedmedia/MediaKeys.cpp ('k') | Source/modules/geolocation/testing/GeolocationClientMock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698