diff options
| author | Steve Block <steveblock@google.com> | 2010-07-01 02:18:24 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-07-01 02:18:24 -0700 |
| commit | f96d23ae1a7f5d5ed48cc1c618c2caf298c616ef (patch) | |
| tree | a59eb5d303b429862a01c1ca8a88f65cd295941c | |
| parent | 7c32c0dfb476488f3133755f325a6e0405970fce (diff) | |
| parent | 074c08c4ebbba0875549496829ee7872dd153ee8 (diff) | |
| download | frameworks_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-x | core/java/android/webkit/GeolocationService.java | 5 |
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."); |
