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

Unified Diff: chrome/browser/sync/api/syncable_service.h

Issue 8065016: [Sync] Refactor non-frontend DTC to handle new API properly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reffffactor Created 9 years, 2 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/sync/api/syncable_service.h
diff --git a/chrome/browser/sync/api/syncable_service.h b/chrome/browser/sync/api/syncable_service.h
index 9d7ae621b7b8cb534a7e2d7b7660a5c99784d81e..5af835c347a9a64ccd798dc9c1c04d097ca7d4f7 100644
--- a/chrome/browser/sync/api/syncable_service.h
+++ b/chrome/browser/sync/api/syncable_service.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/compiler_specific.h"
+#include "base/memory/weak_ptr.h"
#include "chrome/browser/sync/syncable/model_type.h"
#include "chrome/browser/sync/api/sync_change_processor.h"
#include "chrome/browser/sync/api/sync_data.h"
@@ -18,7 +19,8 @@ class SyncData;
typedef std::vector<SyncData> SyncDataList;
-class SyncableService : public SyncChangeProcessor {
+class SyncableService : public SyncChangeProcessor,
+ public base::SupportsWeakPtr<SyncableService> {
akalin 2011/10/11 22:41:08 I don't like making this interface a non-interface
Nicolas Zea 2011/10/12 04:24:19 Done, and changed all implementations of SyncableS
public:
// Informs the service to begin syncing the specified synced datatype |type|.
// The service should then merge |initial_sync_data| into it's local data,

Powered by Google App Engine
This is Rietveld 408576698