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

Unified Diff: chrome/browser/extensions/extension_service.h

Issue 9749012: [Sync] Have SyncableService's take ownership of their SyncChangeProcessor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment Created 8 years, 9 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/extensions/extension_service.h
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h
index 4c133d8ab5861b6f41abfdbb65311b3eaf3afcac..d001e27323caf29e9aa38d66ad88e8d62a156705 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -424,7 +424,7 @@ class ExtensionService
virtual SyncError MergeDataAndStartSyncing(
syncable::ModelType type,
const SyncDataList& initial_sync_data,
- SyncChangeProcessor* sync_processor) OVERRIDE;
+ scoped_ptr<SyncChangeProcessor> sync_processor) OVERRIDE;
virtual void StopSyncing(syncable::ModelType type) OVERRIDE;
virtual SyncDataList GetAllSyncData(syncable::ModelType type) const OVERRIDE;
virtual SyncError ProcessSyncChanges(
@@ -596,13 +596,15 @@ class ExtensionService
SyncBundle();
~SyncBundle();
+ void Reset();
+
bool HasExtensionId(const std::string& id) const;
bool HasPendingExtensionId(const std::string& id) const;
ExtensionFilter filter;
std::set<std::string> synced_extensions;
std::map<std::string, ExtensionSyncData> pending_sync_data;
- SyncChangeProcessor* sync_processor;
+ scoped_ptr<SyncChangeProcessor> sync_processor;
asargent_no_longer_on_chrome 2012/03/22 22:54:11 Would it be worth adding a comment here reminding
Nicolas Zea 2012/03/22 23:05:29 Done.
};
// Contains Extension data that can change during the life of the process,

Powered by Google App Engine
This is Rietveld 408576698