Delete Games Component
Cleaning-up dead code for a feature that is no longer in development.
Change-Id: Ia6e59ba5f57c2070ccb4e843183d58990dd427fc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2692758
Reviewed-by: Dominic Battré <[email protected]>
Reviewed-by: Scott Violet <[email protected]>
Reviewed-by: sebsg <[email protected]>
Commit-Queue: Sebastien Lalancette <[email protected]>
Cr-Commit-Position: refs/heads/master@{#854855}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 7ad4a10..cbe7bd9 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -220,7 +220,6 @@
#include "components/feed/buildflags.h"
#include "components/feed/core/common/pref_names.h"
#include "components/feed/core/shared_prefs/pref_names.h"
-#include "components/games/core/games_prefs.h"
#include "components/ntp_tiles/popular_sites_impl.h"
#include "components/permissions/contexts/geolocation_permission_context_android.h"
#include "components/query_tiles/tile_service_prefs.h"
@@ -552,6 +551,9 @@
const char kStabilityBreakpadRegistrationFail[] =
"user_experience_metrics.stability.breakpad_registration_fail";
+// Deprecated 02/2021
+const char kGamesInstallDirPref[] = "games.data_files_paths";
+
// Register local state used only for migration (clearing or moving to a new
// key).
void RegisterLocalStatePrefsForMigration(PrefRegistrySimple* registry) {
@@ -661,6 +663,8 @@
registry->RegisterInt64Pref(kDataReductionProxyLastConfigRetrievalTime, 0L);
registry->RegisterStringPref(kDataReductionProxyConfig, std::string());
+
+ registry->RegisterFilePathPref(kGamesInstallDirPref, base::FilePath());
}
} // namespace
@@ -996,7 +1000,6 @@
#if defined(OS_ANDROID)
cdm::MediaDrmStorageImpl::RegisterProfilePrefs(registry);
explore_sites::HistoryStatisticsReporter::RegisterPrefs(registry);
- games::prefs::RegisterProfilePrefs(registry);
permissions::GeolocationPermissionContextAndroid::RegisterProfilePrefs(
registry);
KnownInterceptionDisclosureInfoBarDelegate::RegisterProfilePrefs(registry);
@@ -1339,6 +1342,9 @@
#endif // defined(OS_ANDROID)
syncer::ClearObsoletePassphrasePromptPrefs(profile_prefs);
+ // Added 02/2021
+ profile_prefs->ClearPref(kGamesInstallDirPref);
+
// Please don't delete the following line. It is used by PRESUBMIT.py.
// END_MIGRATE_OBSOLETE_PROFILE_PREFS
}