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

Unified Diff: sync/internal_api/public/base/unique_position.h

Issue 2084243004: [WIP][tracing] Add memory dump provider for sync Directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes. Created 4 years, 5 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: sync/internal_api/public/base/unique_position.h
diff --git a/sync/internal_api/public/base/unique_position.h b/sync/internal_api/public/base/unique_position.h
index 70e9b39e09d25ba8e480aff8a769b52cb5c2e56e..3a9967455bdd9b07d5cd2a886889639c1a3b16c7 100644
--- a/sync/internal_api/public/base/unique_position.h
+++ b/sync/internal_api/public/base/unique_position.h
@@ -95,6 +95,8 @@ class SYNC_EXPORT UniquePosition {
// Returns the suffix.
std::string GetSuffixForTest() const;
+ size_t compressed_byte_size() const { return compressed_.capacity() + 1; }
+
// Performs a lossy conversion to an int64_t position. Positions converted to
// and from int64_ts using this and the FromInt64 function should maintain
// their

Powered by Google App Engine
This is Rietveld 408576698