[APS] Start the initial app installation flow on first startup.

When a user logs into a device for the first time, start the initial app
installation flow. Save a pref to disk once this is completed, so that
it isn't repeated again for the same user unless the profile is removed
from the device.

Bug: b:243096960, b:244113689
Change-Id: I674b6020a39ce069150ccd15c1d9c417c27b7538
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3857594
Reviewed-by: Marc Treib <[email protected]>
Commit-Queue: Jeevan Shikaram <[email protected]>
Reviewed-by: Melissa Zhang <[email protected]>
Reviewed-by: Ramin Halavati <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1044392}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 952f37e..bca6edc 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -297,6 +297,7 @@
 #include "ash/public/cpp/ash_prefs.h"
 #include "ash/services/device_sync/public/cpp/device_sync_prefs.h"
 #include "ash/services/multidevice_setup/multidevice_setup_service.h"
+#include "chrome/browser/apps/app_preload_service/app_preload_service.h"
 #include "chrome/browser/apps/app_service/metrics/app_platform_metrics_service.h"
 #include "chrome/browser/apps/app_service/webapk/webapk_prefs.h"
 #include "chrome/browser/ash/account_manager/account_apps_availability.h"
@@ -1459,6 +1460,7 @@
 #if BUILDFLAG(IS_CHROMEOS_ASH)
   app_list::AppListSyncableService::RegisterProfilePrefs(registry);
   apps::AppPlatformMetricsService::RegisterProfilePrefs(registry);
+  apps::AppPreloadService::RegisterProfilePrefs(registry);
   apps::webapk_prefs::RegisterProfilePrefs(registry);
   arc::prefs::RegisterProfilePrefs(registry);
   ArcAppListPrefs::RegisterProfilePrefs(registry);