summaryrefslogtreecommitdiffstats
path: root/WebCore/page/Geolocation.cpp
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2009-12-17 09:55:28 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2009-12-17 09:55:28 -0800
commit4dd98cc27e25e6c3104672f50749132d2236461b (patch)
tree01f4412526c81ec62e02d71d128ec45827a12fdc /WebCore/page/Geolocation.cpp
parentfadf964da75468c2c995316cea8d82d32705a7e1 (diff)
parentaad6f24e036b3740071bb995b955b18b572067b2 (diff)
downloadexternal_webkit-4dd98cc27e25e6c3104672f50749132d2236461b.zip
external_webkit-4dd98cc27e25e6c3104672f50749132d2236461b.tar.gz
external_webkit-4dd98cc27e25e6c3104672f50749132d2236461b.tar.bz2
am aad6f24e: Merge webkit.org at r51976 : Fix general conflicts.
Merge commit 'aad6f24e036b3740071bb995b955b18b572067b2' into eclair-mr2-plus-aosp * commit 'aad6f24e036b3740071bb995b955b18b572067b2': Merge webkit.org at r51976 : Fix general conflicts.
Diffstat (limited to 'WebCore/page/Geolocation.cpp')
-rw-r--r--WebCore/page/Geolocation.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/WebCore/page/Geolocation.cpp b/WebCore/page/Geolocation.cpp
index 561d19c..b94947e 100644
--- a/WebCore/page/Geolocation.cpp
+++ b/WebCore/page/Geolocation.cpp
@@ -87,13 +87,8 @@ void Geolocation::GeoNotifier::timerFired(Timer<GeoNotifier>*)
{
m_timer.stop();
-<<<<<<< HEAD:WebCore/page/Geolocation.cpp
- // Cache our pointer to the Geolocation object, as this object could be
- // deleted by a call to clearWatch in a callback.
-=======
// Cache our pointer to the Geolocation object, as this GeoNotifier object
// could be deleted by a call to clearWatch in a callback.
->>>>>>> webkit.org at r51976:WebCore/page/Geolocation.cpp
Geolocation* geolocation = m_geolocation;
if (m_fatalError) {
@@ -101,15 +96,12 @@ void Geolocation::GeoNotifier::timerFired(Timer<GeoNotifier>*)
m_errorCallback->handleEvent(m_fatalError.get());
// This will cause this notifier to be deleted.
geolocation->fatalErrorOccurred(this);
-<<<<<<< HEAD:WebCore/page/Geolocation.cpp
return;
}
if (m_cachedPosition) {
m_successCallback->handleEvent(m_cachedPosition.get());
geolocation->requestReturnedCachedPosition(this);
-=======
->>>>>>> webkit.org at r51976:WebCore/page/Geolocation.cpp
return;
}
@@ -370,7 +362,6 @@ PassRefPtr<Geolocation::GeoNotifier> Geolocation::startRequest(PassRefPtr<Positi
if (isDenied())
notifier->setFatalError(PositionError::create(PositionError::PERMISSION_DENIED, permissionDeniedErrorMessage));
else {
-<<<<<<< HEAD:WebCore/page/Geolocation.cpp
if (haveSuitableCachedPosition(notifier->m_options.get())) {
ASSERT(m_cachedPositionManager->cachedPosition());
if (isAllowed())
@@ -383,14 +374,8 @@ PassRefPtr<Geolocation::GeoNotifier> Geolocation::startRequest(PassRefPtr<Positi
if (notifier->hasZeroTimeout() || m_service->startUpdating(notifier->m_options.get()))
notifier->startTimerIfNeeded();
else
- notifier->setFatalError(PositionError::create(PositionError::UNKNOWN_ERROR, "Failed to start Geolocation service"));
+ notifier->setFatalError(PositionError::create(PositionError::POSITION_UNAVAILABLE, "Failed to start Geolocation service"));
}
-=======
- if (notifier->hasZeroTimeout() || m_service->startUpdating(notifier->m_options.get()))
- notifier->startTimerIfNeeded();
- else
- notifier->setFatalError(PositionError::create(PositionError::POSITION_UNAVAILABLE, "Failed to start Geolocation service"));
->>>>>>> webkit.org at r51976:WebCore/page/Geolocation.cpp
}
return notifier.release();