summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-07-01 02:18:24 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-07-01 02:18:24 -0700
commitf96d23ae1a7f5d5ed48cc1c618c2caf298c616ef (patch)
treea59eb5d303b429862a01c1ca8a88f65cd295941c
parent7c32c0dfb476488f3133755f325a6e0405970fce (diff)
parent074c08c4ebbba0875549496829ee7872dd153ee8 (diff)
downloadframeworks_base-f96d23ae1a7f5d5ed48cc1c618c2caf298c616ef.zip
frameworks_base-f96d23ae1a7f5d5ed48cc1c618c2caf298c616ef.tar.gz
frameworks_base-f96d23ae1a7f5d5ed48cc1c618c2caf298c616ef.tar.bz2
Merge "Pass the WebView context to the GeolocationService from WebKit"
-rwxr-xr-xcore/java/android/webkit/GeolocationService.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/java/android/webkit/GeolocationService.java b/core/java/android/webkit/GeolocationService.java
index 183b3c0..91de1d8 100755
--- a/core/java/android/webkit/GeolocationService.java
+++ b/core/java/android/webkit/GeolocationService.java
@@ -45,14 +45,13 @@ final class GeolocationService implements LocationListener {
/**
* Constructor
+ * @param context The context from which we obtain the system service.
* @param nativeObject The native object to which this object will report position updates and
* errors.
*/
- public GeolocationService(long nativeObject) {
+ public GeolocationService(Context context, long nativeObject) {
mNativeObject = nativeObject;
// Register newLocationAvailable with platform service.
- ActivityThread thread = ActivityThread.systemMain();
- Context context = thread.getApplication();
mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
if (mLocationManager == null) {
Log.e(TAG, "Could not get location manager.");