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

Unified Diff: device/geolocation/android/java/src/org/chromium/device/geolocation/LocationProviderAdapter.java

Issue 2847523002: Android: Remove GetApplicationContext part 4 (Closed)
Patch Set: Rebase and fix build Created 3 years, 7 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: device/geolocation/android/java/src/org/chromium/device/geolocation/LocationProviderAdapter.java
diff --git a/device/geolocation/android/java/src/org/chromium/device/geolocation/LocationProviderAdapter.java b/device/geolocation/android/java/src/org/chromium/device/geolocation/LocationProviderAdapter.java
index c735159562ade09baf87a0df9f37ab094cf5498e..8e1735e65b9eb99c7f0bb3c506dece4421958bdf 100644
--- a/device/geolocation/android/java/src/org/chromium/device/geolocation/LocationProviderAdapter.java
+++ b/device/geolocation/android/java/src/org/chromium/device/geolocation/LocationProviderAdapter.java
@@ -4,7 +4,6 @@
package org.chromium.device.geolocation;
-import android.content.Context;
import android.location.Location;
import org.chromium.base.Log;
@@ -31,13 +30,13 @@ public class LocationProviderAdapter {
// Delegate handling the real work in the main thread.
private LocationProviderFactory.LocationProvider mImpl;
- private LocationProviderAdapter(Context context) {
- mImpl = LocationProviderFactory.create(context);
+ private LocationProviderAdapter() {
+ mImpl = LocationProviderFactory.create();
}
@CalledByNative
- public static LocationProviderAdapter create(Context context) {
- return new LocationProviderAdapter(context);
+ public static LocationProviderAdapter create() {
+ return new LocationProviderAdapter();
}
/**

Powered by Google App Engine
This is Rietveld 408576698