diff options
-rw-r--r-- | chrome/browser/chromeos/gdata/drive_system_service.cc | 4 | ||||
-rw-r--r-- | chrome/browser/chromeos/gdata/drive_system_service.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/gdata/drive_system_service.cc b/chrome/browser/chromeos/gdata/drive_system_service.cc index e75c1fe..1b4372d 100644 --- a/chrome/browser/chromeos/gdata/drive_system_service.cc +++ b/chrome/browser/chromeos/gdata/drive_system_service.cc @@ -18,6 +18,7 @@ #include "chrome/browser/chromeos/gdata/file_write_helper.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" @@ -75,6 +76,8 @@ void DriveSystemService::Initialize( download_observer_.reset(new DriveDownloadObserver(uploader(), file_system())); sync_client_.reset(new DriveSyncClient(profile_, file_system(), cache())); + stale_cache_files_remover_.reset(new StaleCacheFilesRemover(file_system(), + cache())); sync_client_->Initialize(); file_system_->Initialize(); @@ -97,6 +100,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(); diff --git a/chrome/browser/chromeos/gdata/drive_system_service.h b/chrome/browser/chromeos/gdata/drive_system_service.h index d76d8ca..b768c02 100644 --- a/chrome/browser/chromeos/gdata/drive_system_service.h +++ b/chrome/browser/chromeos/gdata/drive_system_service.h @@ -27,6 +27,7 @@ class DriveUploader; class DriveWebAppsRegistry; class FileWriteHelper; class DriveSyncClient; +class StaleCacheFilesRemover; // DriveSystemService runs the Drive system, including the Drive file system // implementation for the file manager, and some other sub systems. @@ -82,6 +83,7 @@ class DriveSystemService : public ProfileKeyedService { scoped_ptr<FileWriteHelper> file_write_helper_; scoped_ptr<DriveDownloadObserver> download_observer_; scoped_ptr<DriveSyncClient> sync_client_; + scoped_ptr<StaleCacheFilesRemover> stale_cache_files_remover_; base::WeakPtrFactory<DriveSystemService> weak_ptr_factory_; DISALLOW_COPY_AND_ASSIGN(DriveSystemService); |