boolean function ( ) { return hasPermission ( Manifest . permission . ACCESS_COARSE_LOCATION ) || hasPermission ( Manifest . permission . ACCESS_FINE_LOCATION ) ; }
returns true if chromium has permission to access location . check both hasandroidlocationpermission and issystemlocationsettingenabled to determine if chromium 's location requests will return results . concode_field_sep LocationUtils sInstance concode_elem_sep Factory sFactory concode_field_sep void setFactory concode_elem_sep boolean hasPermission concode_elem_sep LocationUtils create concode_elem_sep boolean isSystemLocationSettingEnabled concode_elem_sep LocationUtils getInstance concode_elem_sep Intent getSystemLocationSettingsIntent