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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 8572006: Add policies to control the disk cache size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index baf12d06e42766d73f9db900a15f3543023229b5..523b0f389a7d85bcbcb4e327e7c672802daab39e 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -936,9 +936,11 @@ void BrowserProcessImpl::CreateLocalState() {
local_state_.get(), NULL);
plugin_finder_disabled_pref_.MoveToThread(BrowserThread::IO);
- // Initialize the disk cache location policy. This policy is not hot update-
- // able so we need to have it when initializing the profiles.
+ // Initialize the disk cache policies. These policies are not hot update-
+ // able so we need to have them when initializing the profiles.
local_state_->RegisterFilePathPref(prefs::kDiskCacheDir, FilePath());
+ local_state_->RegisterIntegerPref(prefs::kDiskCacheSize, 0);
+ local_state_->RegisterIntegerPref(prefs::kMediaCacheSize, 0);
Joao da Silva 2011/11/15 14:12:53 See other comments; I think these policies shouldn
// Another policy that needs to be defined before the net subsystem is
// initialized is MaxConnectionsPerProxy so we do it here.

Powered by Google App Engine
This is Rietveld 408576698