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

Unified Diff: third_party/WebKit/WebCore/platform/gtk/GeolocationServiceGtk.cpp

Issue 46097: WebKit merge 41660:41709 (WebKit side).... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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: third_party/WebKit/WebCore/platform/gtk/GeolocationServiceGtk.cpp
===================================================================
--- third_party/WebKit/WebCore/platform/gtk/GeolocationServiceGtk.cpp (revision 11711)
+++ third_party/WebKit/WebCore/platform/gtk/GeolocationServiceGtk.cpp (working copy)
@@ -179,9 +179,11 @@
void GeolocationServiceGtk::updatePosition()
{
m_lastError = 0;
- m_lastPosition = Geoposition::create(m_latitude, m_longitude, m_altitude,
- m_accuracy, m_altitudeAccuracy, 0.0,
- 0.0, m_timestamp*1000.0);
+
+ RefPtr<Coordinates> coordinates = Coordinates::create(m_latitude, m_longitude,
+ m_altitude, m_accuracy,
+ m_altitudeAccuracy, 0.0, 0.0);
+ m_lastPosition = Geoposition::create(coordinates.release(), m_timestamp * 1000.0);
positionChanged();
}

Powered by Google App Engine
This is Rietveld 408576698