Index: chrome/browser/chromeos/gdata/gdata_system_service.cc |
diff --git a/chrome/browser/chromeos/gdata/gdata_system_service.cc b/chrome/browser/chromeos/gdata/gdata_system_service.cc |
index ac0049ba5bc04db9cc92b61041f188c654bf65fd..acb96baa6d727bdf861c8cc49691bf176235d064 100644 |
--- a/chrome/browser/chromeos/gdata/gdata_system_service.cc |
+++ b/chrome/browser/chromeos/gdata/gdata_system_service.cc |
@@ -18,6 +18,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" |
@@ -75,6 +76,9 @@ void GDataSystemService::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())); |
+ |
contacts_service_.reset(new GDataContactsService(profile_)); |
sync_client_->Initialize(); |
@@ -99,6 +103,7 @@ void GDataSystemService::Shutdown() { |
// Shut down the member objects in the reverse order of creation. |
contacts_service_.reset(); |
+ stale_cache_files_remover_.reset(); |
sync_client_.reset(); |
download_observer_.reset(); |
file_write_helper_.reset(); |