Index: chrome/browser/sync/syncable/syncable.cc |
diff --git a/chrome/browser/sync/syncable/syncable.cc b/chrome/browser/sync/syncable/syncable.cc |
index e5f4755fdc56b1cb90b96b568247a57fc8cc99a8..4a0340b96e505ab76ad9d9399ad260255b760759 100644 |
--- a/chrome/browser/sync/syncable/syncable.cc |
+++ b/chrome/browser/sync/syncable/syncable.cc |
@@ -795,6 +795,11 @@ void Directory::GetDownloadProgressAsString( |
value_out); |
} |
+size_t Directory::GetEntriesCount() const { |
+ ScopedKernelLock lock(this); |
+ return kernel_->metahandles_index ? kernel_->metahandles_index->size() : 0; |
+} |
+ |
void Directory::SetDownloadProgress( |
ModelType model_type, |
const sync_pb::DataTypeProgressMarker& new_progress) { |