| Index: ios/chrome/browser/physical_web/start_physical_web_discovery.mm
|
| diff --git a/ios/chrome/browser/physical_web/start_physical_web_discovery.mm b/ios/chrome/browser/physical_web/start_physical_web_discovery.mm
|
| index a61a7652105be59e3e7dba528aabce5d29c9aede..5f51776224f36a599c55e36265a5cb0149d19c0d 100644
|
| --- a/ios/chrome/browser/physical_web/start_physical_web_discovery.mm
|
| +++ b/ios/chrome/browser/physical_web/start_physical_web_discovery.mm
|
| @@ -59,13 +59,11 @@ void StartPhysicalWebDiscovery(PrefService* pref_service,
|
| default_search_provider->IsGoogleSearchURLWithReplaceableKeyword(
|
| SearchTermsData());
|
|
|
| - bool auto_enable = !is_incognito && location_services_enabled &&
|
| - location_authorized && geolocation_eligible &&
|
| - google_search_enabled;
|
| -
|
| - pref_service->SetInteger(prefs::kIosPhysicalWebEnabled,
|
| - auto_enable ? physical_web::kPhysicalWebOn
|
| - : physical_web::kPhysicalWebOff);
|
| + if (!is_incognito && location_services_enabled && location_authorized &&
|
| + geolocation_eligible && google_search_enabled) {
|
| + pref_service->SetInteger(prefs::kIosPhysicalWebEnabled,
|
| + physical_web::kPhysicalWebOn);
|
| + }
|
| preference_state = pref_service->GetInteger(prefs::kIosPhysicalWebEnabled);
|
| }
|
|
|
|
|