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

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

Issue 10790135: chromeos: Rename MockGDataSyncClient to MocKGDataCacheObserver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 4562885b181ff6658ae06675eaffdad75120c6d9..23324c75094a5f3586689badfbd0d69d68e9edf4 100644
--- a/chrome/browser/chromeos/gdata/gdata_sync_client.h
+++ b/chrome/browser/chromeos/gdata/gdata_sync_client.h
@@ -41,23 +41,10 @@ namespace gdata {
// TODO(satorux): This client should also upload pinned but dirty (locally
// edited) files to gdata. Will work on this once downloading is done.
// crosbug.com/27836.
-//
-// The interface class is defined to make GDataSyncClient mockable.
-class GDataSyncClientInterface {
- public:
- // Initializes the GDataSyncClient.
- virtual void Initialize() = 0;
-
- virtual ~GDataSyncClientInterface() {}
-};
-
-// The production implementation of GDataSyncClientInterface.
-class GDataSyncClient
- : public GDataSyncClientInterface,
- public GDataFileSystemInterface::Observer,
- public GDataCache::Observer,
- public chromeos::NetworkLibrary::NetworkManagerObserver,
- public content::NotificationObserver {
+class GDataSyncClient : public GDataFileSystemInterface::Observer,
+ public GDataCache::Observer,
+ public chromeos::NetworkLibrary::NetworkManagerObserver,
+ public content::NotificationObserver {
public:
// Types of sync tasks.
enum SyncType {
@@ -84,8 +71,8 @@ class GDataSyncClient
GDataCache* cache);
virtual ~GDataSyncClient();
- // GDataSyncClientInterface overrides.
- virtual void Initialize() OVERRIDE;
+ // Initializes the GDataSyncClient.
+ void Initialize();
// GDataFileSystemInterface overrides.
virtual void OnInitialLoadFinished() OVERRIDE;
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc ('k') | chrome/browser/chromeos/gdata/mock_gdata_cache_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698