Always use the legacy GeolocationPermission APIs

BUG=396184
NOTRY=true

Review URL: https://codereview.chromium.org/410703003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285043 0039d316-1c4b-4281-b951-d872f2087c98
parent 938c54d2
......@@ -2398,8 +2398,10 @@ public class AwContents {
// Return true if the GeolocationPermissionAPI should be used.
@CalledByNative
private boolean useLegacyGeolocationPermissionAPI() {
// TODO (michaelbai): Need to verify whether this is correct when release.
return mContext.getApplicationInfo().targetSdkVersion <= Build.VERSION_CODES.KITKAT;
// Always return true since we are not ready to swap the geolocation yet.
// TODO: If we decide not to migrate the geolocation, there are some unreachable
// code need to remove. http://crbug.com/396184.
return true;
}
//--------------------------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment