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

Unified Diff: components/sync/syncable/directory_backing_store.cc

Issue 2452713003: [Sync] Implement MemoryDumpProvider. (Closed)
Patch Set: Created 4 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: components/sync/syncable/directory_backing_store.cc
diff --git a/components/sync/syncable/directory_backing_store.cc b/components/sync/syncable/directory_backing_store.cc
index 134e674a3065b3b220b48201cf889dd4dd90c3a9..e4306177731f1b8b001a921b50b77615d5bd37b5 100644
--- a/components/sync/syncable/directory_backing_store.cc
+++ b/components/sync/syncable/directory_backing_store.cc
@@ -1718,6 +1718,11 @@ bool DirectoryBackingStore::GetDatabasePageSize(int* page_size) {
return true;
}
+bool DirectoryBackingStore::ReportMemoryUsage(
+ base::trace_event::MemoryAllocatorDump* mad) {
+ return db_ && db_->ReportMemoryUsage(mad);
+}
+
bool DirectoryBackingStore::UpdatePageSizeIfNecessary() {
int page_size;
if (!GetDatabasePageSize(&page_size))

Powered by Google App Engine
This is Rietveld 408576698