[memories] Allows user to toggle journeys on/off in the landing page

- Allows the users to turn the Journeys view on/off using a menu item on
  the history UI sidebar. The menu item is not visible when the Journeys
  feature is disabled via chrome://flags/#history-journeys.
- Prevents the Omnibox action chip from appearing when Journeys are off.
- This preference is remembered across page reload and browser sessions.

Bug: 1173908

Change-Id: Idac3f4666bc3b535b565532419908658916f4c1e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3199321
Commit-Queue: Moe Ahmadi <[email protected]>
Reviewed-by: dpapad <[email protected]>
Reviewed-by: Dominic Battré <[email protected]>
Reviewed-by: Michael Crouse <[email protected]>
Reviewed-by: Alex Gough <[email protected]>
Reviewed-by: Tommy Li <[email protected]>
Cr-Commit-Position: refs/heads/main@{#928896}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 8660d7a..d5ed8fa 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -108,6 +108,7 @@
 #include "components/embedder_support/origin_trials/origin_trial_prefs.h"
 #include "components/federated_learning/floc_id.h"
 #include "components/flags_ui/pref_service_flags_storage.h"
+#include "components/history_clusters/core/history_clusters_prefs.h"
 #include "components/image_fetcher/core/cache/image_cache.h"
 #include "components/invalidation/impl/fcm_invalidation_service.h"
 #include "components/invalidation/impl/invalidator_registrar_with_memory.h"
@@ -1132,6 +1133,7 @@
   dom_distiller::RegisterProfilePrefs(registry);
   DownloadPrefs::RegisterProfilePrefs(registry);
   federated_learning::FlocId::RegisterPrefs(registry);
+  history_clusters::prefs::RegisterProfilePrefs(registry);
   HostContentSettingsMap::RegisterProfilePrefs(registry);
   HttpsImageCompressionInfoBarDecider::RegisterProfilePrefs(registry);
   image_fetcher::ImageCache::RegisterProfilePrefs(registry);