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

Unified Diff: device/geolocation/location_api_adapter_android.cc

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/location_api_adapter_android.cc
diff --git a/device/geolocation/location_api_adapter_android.cc b/device/geolocation/location_api_adapter_android.cc
index 61f47902561526105c4f904b707df3fb9737f73e..fd77631dcb32d8291e2bd4e48246c9d4653cbceb 100644
--- a/device/geolocation/location_api_adapter_android.cc
+++ b/device/geolocation/location_api_adapter_android.cc
@@ -4,7 +4,6 @@
#include "device/geolocation/location_api_adapter_android.h"
-#include "base/android/context_utils.h"
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
#include "base/bind.h"
@@ -54,8 +53,8 @@ bool LocationApiAdapterAndroid::Start(OnGeopositionCB on_geoposition_callback,
on_geoposition_callback_ = on_geoposition_callback;
DCHECK(java_location_provider_adapter_.is_null());
- java_location_provider_adapter_.Reset(Java_LocationProviderAdapter_create(
- env, base::android::GetApplicationContext()));
+ java_location_provider_adapter_.Reset(
+ Java_LocationProviderAdapter_create(env));
}
// At this point we should have all our pre-conditions ready, and they'd only

Powered by Google App Engine
This is Rietveld 408576698