Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Unified Diff: chrome/browser/ui/browser.cc

Issue 8572006: Add policies to control the disk cache size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed issues. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index b854c6b402238ac52e167e10b91220d5f5cd8b71..13ef6f411fd4555a96274a6038f988b43ac3635d 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -2446,6 +2446,17 @@ void Browser::RegisterUserPrefs(PrefService* prefs) {
prefs->RegisterBooleanPref(prefs::kClearPluginLSODataEnabled,
true,
PrefService::UNSYNCABLE_PREF);
+
+ // Initialize the disk cache prefs.
+ prefs->RegisterFilePathPref(prefs::kDiskCacheDir,
+ FilePath(),
+ PrefService::UNSYNCABLE_PREF);
+ prefs->RegisterIntegerPref(prefs::kDiskCacheSize,
+ 0,
+ PrefService::UNSYNCABLE_PREF);
+ prefs->RegisterIntegerPref(prefs::kMediaCacheSize,
+ 0,
+ PrefService::UNSYNCABLE_PREF);
Joao da Silva 2011/11/16 16:10:42 Nit: indent of 2nd and 3rd args on these 3 prefs.
pastarmovj 2011/11/17 13:10:10 Hehe true i removed an _ there and those slipped :
}
// static

Powered by Google App Engine
This is Rietveld 408576698