diff options
Diffstat (limited to 'Source/WebKit2/WebProcess/Geolocation/WebGeolocationManager.cpp')
-rw-r--r-- | Source/WebKit2/WebProcess/Geolocation/WebGeolocationManager.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/WebKit2/WebProcess/Geolocation/WebGeolocationManager.cpp b/Source/WebKit2/WebProcess/Geolocation/WebGeolocationManager.cpp index 691844aaa..f07c4060d 100644 --- a/Source/WebKit2/WebProcess/Geolocation/WebGeolocationManager.cpp +++ b/Source/WebKit2/WebProcess/Geolocation/WebGeolocationManager.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 Apple Inc. All rights reserved. + * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -88,11 +88,11 @@ void WebGeolocationManager::didChangePosition(const WebGeolocationPosition::Data #endif // ENABLE(GEOLOCATION) } -void WebGeolocationManager::didFailToDeterminePosition() +void WebGeolocationManager::didFailToDeterminePosition(const String& errorMessage) { #if ENABLE(GEOLOCATION) // FIXME: Add localized error string. - RefPtr<GeolocationError> error = GeolocationError::create(GeolocationError::PositionUnavailable, /* Localized error string */ String("")); + RefPtr<GeolocationError> error = GeolocationError::create(GeolocationError::PositionUnavailable, errorMessage); Vector<RefPtr<WebPage> > webPageCopy; copyToVector(m_pageSet, webPageCopy); @@ -101,6 +101,8 @@ void WebGeolocationManager::didFailToDeterminePosition() if (page->corePage()) GeolocationController::from(page->corePage())->errorOccurred(error.get()); } +#else + UNUSED_PARAM(errorMessage); #endif // ENABLE(GEOLOCATION) } |