| Index: ios/chrome/browser/ui/settings/physical_web_collection_view_controller.mm
|
| diff --git a/ios/chrome/browser/ui/settings/physical_web_collection_view_controller.mm b/ios/chrome/browser/ui/settings/physical_web_collection_view_controller.mm
|
| index a086c2aec8d0e90746bfe4371c8576dcd13c205e..9067652d30e9239156fd2dcd789c48579a9ef730 100644
|
| --- a/ios/chrome/browser/ui/settings/physical_web_collection_view_controller.mm
|
| +++ b/ios/chrome/browser/ui/settings/physical_web_collection_view_controller.mm
|
| @@ -85,14 +85,7 @@ typedef NS_ENUM(NSInteger, ItemType) {
|
| #pragma mark - Preference switch
|
|
|
| + (BOOL)shouldEnableForPreferenceState:(int)preferenceState {
|
| - // In the default (onboarding) state, render the preference as On if the
|
| - // location app permission is granted.
|
| - if (preferenceState == physical_web::kPhysicalWebOnboarding) {
|
| - CLAuthorizationStatus authStatus = [CLLocationManager authorizationStatus];
|
| - return (authStatus == kCLAuthorizationStatusAuthorizedWhenInUse ||
|
| - authStatus == kCLAuthorizationStatusAuthorizedAlways);
|
| - }
|
| -
|
| + // Render the preference as "on" only if the preference is explicitly enabled.
|
| return (preferenceState == physical_web::kPhysicalWebOn);
|
| }
|
|
|
|
|