Index: webkit/quota/quota_manager.cc |
diff --git a/webkit/quota/quota_manager.cc b/webkit/quota/quota_manager.cc |
index 16b44efe2b138e9151e7e858345bd3f78439b679..3617de677c2a9f9fc702cf2593f73ef498e979b1 100644 |
--- a/webkit/quota/quota_manager.cc |
+++ b/webkit/quota/quota_manager.cc |
@@ -15,6 +15,7 @@ |
#include "base/sys_info.h" |
#include "net/base/net_util.h" |
#include "webkit/quota/quota_database.h" |
+#include "webkit/quota/quota_temporary_storage_evictor.h" |
#include "webkit/quota/quota_types.h" |
#include "webkit/quota/usage_tracker.h" |
@@ -470,10 +471,15 @@ void QuotaManager::LazyInitialize() { |
new UsageTracker(clients_, kStorageTypeTemporary)); |
persistent_usage_tracker_.reset( |
new UsageTracker(clients_, kStorageTypePersistent)); |
+ // TODO(dmikurube): Change this hard-coded 3 seconds. |
+ temporary_storage_evictor_.reset(new QuotaTemporaryStorageEvictor( |
+ this, database_.get(), 3000, db_thread_)); |
kinuko
2011/05/11 12:43:30
Maybe this initialization could be delayed until t
Dai Mikurube (NOT FULLTIME)
2011/05/12 02:45:50
Hmm, added a TODO for now.
|
scoped_refptr<InitializeTask> task( |
new InitializeTask(this, database_.get(), db_thread_, profile_path_)); |
task->Start(); |
+ |
+ temporary_storage_evictor_->Start(); |
} |
void QuotaManager::RegisterClient(QuotaClient* client) { |