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

Unified Diff: chrome/browser/chromeos/gdata/drive_system_service.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: Fix the build error. 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/drive_system_service.cc
diff --git a/chrome/browser/chromeos/gdata/drive_system_service.cc b/chrome/browser/chromeos/gdata/drive_system_service.cc
index 3099728c309bc535cda5432d1bdd8251ab218bd2..27a6be51e1ca4323cabaa2d4678923d76fe63784 100644
--- a/chrome/browser/chromeos/gdata/drive_system_service.cc
+++ b/chrome/browser/chromeos/gdata/drive_system_service.cc
@@ -17,6 +17,7 @@
#include "chrome/browser/chromeos/gdata/gdata_uploader.h"
#include "chrome/browser/chromeos/gdata/gdata_util.h"
#include "chrome/browser/chromeos/gdata/gdata_wapi_service.h"
+#include "chrome/browser/chromeos/gdata/stale_cache_files_remover.h"
#include "chrome/browser/download/download_service.h"
#include "chrome/browser/download/download_service_factory.h"
#include "chrome/browser/profiles/profile.h"
@@ -74,6 +75,8 @@ void DriveSystemService::Initialize(
download_observer_.reset(new GDataDownloadObserver(uploader(),
file_system()));
sync_client_.reset(new GDataSyncClient(profile_, file_system(), cache()));
+ stale_cache_files_remover_.reset(new StaleCacheFilesRemover(file_system(),
+ cache()));
sync_client_->Initialize();
file_system_->Initialize();
@@ -95,6 +98,7 @@ void DriveSystemService::Shutdown() {
RemoveDriveMountPoint();
// Shut down the member objects in the reverse order of creation.
+ stale_cache_files_remover_.reset();
sync_client_.reset();
download_observer_.reset();
file_write_helper_.reset();

Powered by Google App Engine
This is Rietveld 408576698