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

Unified Diff: chrome/browser/chromeos/gdata/gdata_file_system.cc

Issue 10832241: Drive: Removes unused cache files after the initial feed fetch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix (#2) Created 8 years, 4 months 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/chromeos/gdata/gdata_file_system.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_file_system.cc b/chrome/browser/chromeos/gdata/gdata_file_system.cc
index d2d152c3591db12c0db672aedd154f4bbdb40592..4eaadd12cda0a9e7bec080c6e012d9f609bdfc13 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system.cc
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.cc
@@ -24,6 +24,7 @@
#include "chrome/browser/chromeos/gdata/gdata_protocol_handler.h"
#include "chrome/browser/chromeos/gdata/gdata_system_service.h"
#include "chrome/browser/chromeos/gdata/gdata_util.h"
+#include "chrome/browser/chromeos/gdata/stale_cache_files_remover.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_notification_types.h"
@@ -2816,6 +2817,11 @@ void GDataFileSystem::RunAndNotifyInitialLoadFinished(
DVLOG(1) << "RunAndNotifyInitialLoadFinished";
+ // Removes stale cache files. This will delete itself after removing stale
+ // cache files.
+ StaleCacheFilesRemover* remover = new StaleCacheFilesRemover(this, cache_);
+ remover->ScrubCacheAfterDelay();
satorux1 2012/08/10 23:47:40 I think "scrub" is not a popular verb in code. Let
+
// Notify the observers that root directory has been initialized.
FOR_EACH_OBSERVER(GDataFileSystemInterface::Observer, observers_,
OnInitialLoadFinished());

Powered by Google App Engine
This is Rietveld 408576698