Index: sync/syncable/directory.cc |
diff --git a/sync/syncable/directory.cc b/sync/syncable/directory.cc |
index da5449da0d5c7ce900f412ded4d6ec75d339e762..a63538cf91ac61ca05d6f72051a67121753bc1a1 100644 |
--- a/sync/syncable/directory.cc |
+++ b/sync/syncable/directory.cc |
@@ -577,9 +577,9 @@ bool Directory::VacuumAfterSaveChanges(const SaveChangesSnapshot& snapshot) { |
return true; |
} |
-void Directory::PurgeEntriesWithTypeIn(ModelTypeSet types) { |
+bool Directory::PurgeEntriesWithTypeIn(ModelTypeSet types) { |
if (types.Empty()) |
- return; |
+ return true; |
{ |
WriteTransaction trans(FROM_HERE, PURGE_ENTRIES, this); |
@@ -597,7 +597,7 @@ void Directory::PurgeEntriesWithTypeIn(ModelTypeSet types) { |
if ((IsRealDataType(local_type) && types.Has(local_type)) || |
(IsRealDataType(server_type) && types.Has(server_type))) { |
if (!UnlinkEntryFromOrder(*it, &trans, &lock, DATA_TYPE_PURGE)) |
- return; |
+ return false; |
int64 handle = (*it)->ref(META_HANDLE); |
kernel_->metahandles_to_purge->insert(handle); |
@@ -630,6 +630,7 @@ void Directory::PurgeEntriesWithTypeIn(ModelTypeSet types) { |
} |
} |
} |
+ return true; |
} |
void Directory::HandleSaveChangesFailure(const SaveChangesSnapshot& snapshot) { |