Handle the case when EssentialSearchEnabled policy is re-disabled.
When the EssentialSearchEnabled policy is re-disabled, we want to give
the user the opportunity to explicitly choose whether they want to
accept or reject non-essential cookies and data.
To achieve this, the SOCS cookie is deleted upon EssentialSearchEnabled policy disablement. This will trigger the consent bump when using Google
search, prompting the user to accept or reject the usage of non-
essential cookies and data.
Bug: b/312542928
Change-Id: Icc4e9250a3d40fa73e161f96b7151e35b1ad3e6a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5214368
Reviewed-by: Avi Drissman <[email protected]>
Commit-Queue: Mohammed Abdon <[email protected]>
Reviewed-by: Maksim Ivanov <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1255384}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 7bb45d8d2..a4e1f5f0 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -1924,6 +1924,7 @@
registry->RegisterListPref(prefs::kDeskAPIThirdPartyAllowlist);
registry->RegisterBooleanPref(prefs::kInsightsExtensionEnabled, false);
registry->RegisterBooleanPref(prefs::kEssentialSearchEnabled, false);
+ registry->RegisterBooleanPref(prefs::kLastEssentialSearchValue, false);
// By default showing Sync Consent is set to true. It can changed by policy.
registry->RegisterBooleanPref(prefs::kEnableSyncConsent, true);
registry->RegisterListPref(