Index: android_webview/native/aw_settings.cc |
diff --git a/android_webview/native/aw_settings.cc b/android_webview/native/aw_settings.cc |
index a8dc571ca9850c24d1f88400af3d44b1f3896c0d..3ba4ac533cdbb77896836f0a065fa6e8e4383e66 100644 |
--- a/android_webview/native/aw_settings.cc |
+++ b/android_webview/native/aw_settings.cc |
@@ -433,6 +433,10 @@ void AwSettings::PopulateWebPreferencesLocked(JNIEnv* env, |
Java_AwSettings_getFullscreenSupportedLocked(env, obj); |
web_prefs->record_whole_document = |
Java_AwSettings_getRecordFullDocument(env, obj); |
+ |
+ // TODO(jww): This should be removed once sufficient warning has been given of |
+ // possible API breakage because of disabling insecure use of geolocation. |
+ web_prefs->allow_geolocation_on_insecure_origins = true; |
} |
static jlong Init(JNIEnv* env, |