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

Unified Diff: device/geolocation/android/junit/src/org/chromium/device/geolocation/LocationProviderTest.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/junit/src/org/chromium/device/geolocation/LocationProviderTest.java
diff --git a/device/geolocation/android/junit/src/org/chromium/device/geolocation/LocationProviderTest.java b/device/geolocation/android/junit/src/org/chromium/device/geolocation/LocationProviderTest.java
index 5b0945996b437cf9255dcc440f4a10ea0fdaabaf..e6214e3c50d6faacd9d7172812bbc239c72d261d 100644
--- a/device/geolocation/android/junit/src/org/chromium/device/geolocation/LocationProviderTest.java
+++ b/device/geolocation/android/junit/src/org/chromium/device/geolocation/LocationProviderTest.java
@@ -111,7 +111,7 @@ public class LocationProviderTest {
}
private void createLocationProviderAdapter() {
- mLocationProviderAdapter = LocationProviderAdapter.create(mContext);
+ mLocationProviderAdapter = LocationProviderAdapter.create();
assertNotNull("LocationProvider", mLocationProviderAdapter);
}
@@ -132,7 +132,7 @@ public class LocationProviderTest {
}
private void setLocationProviderAndroid() {
- LocationProviderAndroid locationProviderAndroid = new LocationProviderAndroid(mContext);
+ LocationProviderAndroid locationProviderAndroid = new LocationProviderAndroid();
// Robolectric has a ShadowLocationManager class that mocks the behaviour of the real
// class very closely. Use it here.

Powered by Google App Engine
This is Rietveld 408576698