Remove the MediaCacheSize policy and --media-cache-size command line flag.
This configuration is no longer supported with the switch to Network Service.
Being able to configure the media cache size separately from the main disk cache would have become flaky in M72, and stopped working consistently in M74.
(Since Network service experiments started on stable channel in M72, and was fully rolled out to desktop platforms by M74)
The Enterprise.Policies UMA histogram indicates the policy was infrequently used. The DiskCacheSize policy can be used instead to control the size of the unified cache.
Bug: 974387, 934009
Change-Id: Iae086bbe80166bc76db7ca2e1d3eb35d640c7c83
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1661077
Commit-Queue: Eric Roman <[email protected]>
Reviewed-by: Gabriel Charette <[email protected]>
Reviewed-by: Scott Violet <[email protected]>
Reviewed-by: Pavol Marko <[email protected]>
Cr-Commit-Position: refs/heads/master@{#671455}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 1b1f7dc..516398a 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -455,6 +455,9 @@
const char kBookmarkAppCreationLaunchType[] =
"extensions.bookmark_app_creation_launch_type";
+// Deprecated 6/2019
+const char kMediaCacheSize[] = "browser.media_cache_size";
+
// Register prefs used only for migration (clearing or moving to a new key).
void RegisterProfilePrefsForMigration(
user_prefs::PrefRegistrySyncable* registry) {
@@ -514,6 +517,8 @@
#endif // !defined(OS_ANDROID)
registry->RegisterIntegerPref(kBookmarkAppCreationLaunchType, 0);
+
+ registry->RegisterIntegerPref(kMediaCacheSize, 0);
}
} // namespace
@@ -1103,5 +1108,5 @@
profile_prefs->ClearPref(kBookmarkAppCreationLaunchType);
// Added 6/2019.
- profile_prefs->ClearPref(prefs::kMediaCacheSize);
+ profile_prefs->ClearPref(kMediaCacheSize);
}