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

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

Issue 10546093: gdata: Move ownership of GDataCache to GDataSystemService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: _ 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.h
diff --git a/chrome/browser/chromeos/gdata/gdata_sync_client.h b/chrome/browser/chromeos/gdata/gdata_sync_client.h
index 46a77b1606329d102b36d943fdadfde38ac89424..610170140e1a8f47d98f2024157e8ba32c18bfe9 100644
--- a/chrome/browser/chromeos/gdata/gdata_sync_client.h
+++ b/chrome/browser/chromeos/gdata/gdata_sync_client.h
@@ -62,7 +62,8 @@ class GDataSyncClient
// |file_system| is used access the
// cache (ex. store a file to the cache when the file is downloaded).
GDataSyncClient(Profile* profile,
- GDataFileSystemInterface* file_system);
+ GDataFileSystemInterface* file_system,
achuithb 2012/06/11 21:58:10 Why not just pass in GDataSystemService* and have
hashimoto 2012/06/12 02:00:18 I thought doing so will introduce unnecessary depe
hashimoto 2012/06/12 06:20:12 I thought this was a good thing to do, but I began
+ GDataCache* cache);
virtual ~GDataSyncClient();
// GDataSyncClientInterface overrides.
@@ -127,7 +128,8 @@ class GDataSyncClient
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
Profile* profile_;
- GDataFileSystemInterface* file_system_;
+ GDataFileSystemInterface* file_system_; // Owned by GDataSystemService.
+ GDataCache* cache_; // Owned by GDataSystemService.
scoped_ptr<PrefChangeRegistrar> registrar_;
// The queue of resource IDs used to fetch pinned-but-not-fetched files in

Powered by Google App Engine
This is Rietveld 408576698