[image search] Remove image search privacy notice, part 1
The search notifier to notify the image search feature is not wanted
for the updated spec. This cl removes the search notifier view
creation and some implementation of the search notifier controller.
After this cl, the search notifier controller will be created but not
used and the search notifier view will be empty. The main reason is
that there will be a search category filter nudge that is expected to
replace the current search notifier soon. Only the contents of view
will be changed and the controller will do the same thing. Added TODOs
to make sure the clean up is tracked.
Bug: 311785210
Change-Id: I02c5cdc2c3aaf0a285600e7081d55b90c49b6ef4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5064233
Reviewed-by: Toni Barzic <[email protected]>
Reviewed-by: Ahmed Fakhry <[email protected]>
Commit-Queue: Wen-Chien Wang <[email protected]>
Reviewed-by: Tommy Nyquist <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1231092}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 6b4daf9..2944c8f 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -982,6 +982,12 @@
constexpr char kPasswordChangeSuccessTrackerVersion[] =
"password_manager.password_change_success_tracker.version";
+// Deprecated 11/2023.
+#if BUILDFLAG(IS_CHROMEOS_ASH)
+constexpr char kImageSearchPrivacyNotice[] =
+ "ash.launcher.image_search_privacy_notice";
+#endif // BUILDFLAG(IS_CHROMEOS_ASH)
+
// Register local state used only for migration (clearing or moving to a new
// key).
void RegisterLocalStatePrefsForMigration(PrefRegistrySimple* registry) {
@@ -1393,6 +1399,11 @@
// Deprecated 11/2023.
registry->RegisterListPref(kPasswordChangeSuccessTrackerFlows);
registry->RegisterIntegerPref(kPasswordChangeSuccessTrackerVersion, 0);
+
+ // Deprecated 11/2023.
+#if BUILDFLAG(IS_CHROMEOS_ASH)
+ registry->RegisterDictionaryPref(kImageSearchPrivacyNotice);
+#endif // BUILDFLAG(IS_CHROMEOS_ASH)
}
void ClearSyncRequestedPrefAndMaybeMigrate(PrefService* profile_prefs) {
@@ -2619,6 +2630,11 @@
profile_prefs->ClearPref(kPasswordChangeSuccessTrackerFlows);
profile_prefs->ClearPref(kPasswordChangeSuccessTrackerVersion);
+#if BUILDFLAG(IS_CHROMEOS_ASH)
+ // Deprecated 11/2023
+ profile_prefs->ClearPref(kImageSearchPrivacyNotice);
+#endif // BUILDFLAG(IS_CHROMEOS_ASH)
+
// Please don't delete the following line. It is used by PRESUBMIT.py.
// END_MIGRATE_OBSOLETE_PROFILE_PREFS