Index: Source/modules/geolocation/Geolocation.cpp |
diff --git a/Source/modules/geolocation/Geolocation.cpp b/Source/modules/geolocation/Geolocation.cpp |
index fd6675f6b52d5f2107bb2d242190f0789e710336..99035aa0297e45d985b8d1567330db5789db6ab1 100644 |
--- a/Source/modules/geolocation/Geolocation.cpp |
+++ b/Source/modules/geolocation/Geolocation.cpp |
@@ -295,23 +295,23 @@ Geoposition* Geolocation::lastPosition() |
return m_lastPosition.get(); |
} |
-void Geolocation::getCurrentPosition(PassOwnPtr<PositionCallback> successCallback, PassOwnPtr<PositionErrorCallback> errorCallback, PositionOptions* options) |
+void Geolocation::getCurrentPosition(PassOwnPtr<PositionCallback> successCallback, PassOwnPtr<PositionErrorCallback> errorCallback, const Dictionary& options) |
{ |
if (!frame()) |
return; |
- GeoNotifier* notifier = GeoNotifier::create(this, successCallback, errorCallback, options); |
+ GeoNotifier* notifier = GeoNotifier::create(this, successCallback, errorCallback, PositionOptions::create(options)); |
startRequest(notifier); |
m_oneShots.add(notifier); |
} |
-int Geolocation::watchPosition(PassOwnPtr<PositionCallback> successCallback, PassOwnPtr<PositionErrorCallback> errorCallback, PositionOptions* options) |
+int Geolocation::watchPosition(PassOwnPtr<PositionCallback> successCallback, PassOwnPtr<PositionErrorCallback> errorCallback, const Dictionary& options) |
{ |
if (!frame()) |
return 0; |
- GeoNotifier* notifier = GeoNotifier::create(this, successCallback, errorCallback, options); |
+ GeoNotifier* notifier = GeoNotifier::create(this, successCallback, errorCallback, PositionOptions::create(options)); |
startRequest(notifier); |
int watchID; |