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

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

Issue 10546093: gdata: Move ownership of GDataCache to GDataSystemService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add TODO Created 8 years, 6 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_sync_client.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_sync_client.cc b/chrome/browser/chromeos/gdata/gdata_sync_client.cc
index 1302e76426d3ce4df4d1224483fc96dc1660f09e..80f7a67fb694b4c0a1e5aa46d2819a44f6fdbcd7 100644
--- a/chrome/browser/chromeos/gdata/gdata_sync_client.cc
+++ b/chrome/browser/chromeos/gdata/gdata_sync_client.cc
@@ -73,9 +73,11 @@ void ScanPinnedDirectory(const FilePath& directory,
} // namespace
GDataSyncClient::GDataSyncClient(Profile* profile,
- GDataFileSystemInterface* file_system)
+ GDataFileSystemInterface* file_system,
+ GDataCache* cache)
: profile_(profile),
file_system_(file_system),
+ cache_(cache),
registrar_(new PrefChangeRegistrar),
fetch_loop_is_running_(false),
weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
@@ -120,7 +122,7 @@ void GDataSyncClient::StartInitialScan(const base::Closure& closure) {
BrowserThread::GetBlockingPool()->PostTaskAndReply(
FROM_HERE,
base::Bind(&ScanPinnedDirectory,
- file_system_->GetCacheDirectoryPath(
+ cache_->GetCacheDirectoryPath(
GDataCache::CACHE_TYPE_PINNED),
resource_ids),
base::Bind(&GDataSyncClient::OnInitialScanComplete,
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_sync_client.h ('k') | chrome/browser/chromeos/gdata/gdata_sync_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698