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

Unified Diff: chrome/browser/sync/api/fake_syncable_service.cc

Issue 9749012: [Sync] Have SyncableService's take ownership of their SyncChangeProcessor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix browser_tests 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/sync/api/fake_syncable_service.cc
diff --git a/chrome/browser/sync/api/fake_syncable_service.cc b/chrome/browser/sync/api/fake_syncable_service.cc
index 9823dbd1b551481c8e88b1efb3d24f268d058ccf..2f7d94807a909cf7fc25da065ee59cc69fe05a7f 100644
--- a/chrome/browser/sync/api/fake_syncable_service.cc
+++ b/chrome/browser/sync/api/fake_syncable_service.cc
@@ -30,8 +30,8 @@ bool FakeSyncableService::syncing() const {
SyncError FakeSyncableService::MergeDataAndStartSyncing(
syncable::ModelType type,
const SyncDataList& initial_sync_data,
- SyncChangeProcessor* sync_processor) {
- sync_processor_.reset(sync_processor);
+ scoped_ptr<SyncChangeProcessor> sync_processor) {
+ sync_processor_ = sync_processor.Pass();
type_ = type;
if (!merge_data_and_start_syncing_error_.IsSet()) {
syncing_ = true;
@@ -41,6 +41,7 @@ SyncError FakeSyncableService::MergeDataAndStartSyncing(
void FakeSyncableService::StopSyncing(syncable::ModelType type) {
syncing_ = false;
+ sync_processor_.reset();
}
SyncDataList FakeSyncableService::GetAllSyncData(

Powered by Google App Engine
This is Rietveld 408576698