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

Unified Diff: components/sync/base/unique_position.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/base/unique_position.cc
diff --git a/components/sync/base/unique_position.cc b/components/sync/base/unique_position.cc
index 685a290e3e0df4be30ea5a48def3e12af340592a..4f85fed51f2b3e7be435a1d4100777b4ed5fc100 100644
--- a/components/sync/base/unique_position.cc
+++ b/components/sync/base/unique_position.cc
@@ -11,6 +11,7 @@
#include "base/rand_util.h"
#include "base/stl_util.h"
#include "base/strings/string_number_conversions.h"
+#include "base/trace_event/estimate_memory_usage.h"
#include "components/sync/protocol/unique_position.pb.h"
#include "third_party/zlib/zlib.h"
@@ -614,4 +615,9 @@ bool UniquePosition::IsValidCompressed(const std::string& str) {
return true;
}
+size_t UniquePosition::EstimateMemoryUsage() const {
+ using base::trace_event::EstimateMemoryUsage;
+ return EstimateMemoryUsage(compressed_);
+}
+
} // namespace syncer

Powered by Google App Engine
This is Rietveld 408576698