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

Unified Diff: components/sync/base/unique_position.cc

Issue 2382443006: Sync MDP: implement MemoryDumpProvider
Patch Set: Created 4 years, 3 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
« no previous file with comments | « components/sync/base/unique_position.h ('k') | components/sync/core/sync_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/base/unique_position.cc
diff --git a/components/sync/base/unique_position.cc b/components/sync/base/unique_position.cc
index 1c8cdf87d8b2da7bafb9e53eac97d4a2685270b0..3a5615bb2d76eaaaaa1690ed8bcf8c5a07e3cdd6 100644
--- a/components/sync/base/unique_position.cc
+++ b/components/sync/base/unique_position.cc
@@ -14,6 +14,7 @@
#include "base/rand_util.h"
#include "base/stl_util.h"
#include "base/strings/string_number_conversions.h"
+#include "base/trace_event/memory_usage_estimators.h"
#include "components/sync/protocol/unique_position.pb.h"
#include "third_party/zlib/zlib.h"
@@ -617,4 +618,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
« no previous file with comments | « components/sync/base/unique_position.h ('k') | components/sync/core/sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698