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

Unified Diff: components/sync/base/proto_value_ptr.h

Issue 2781863004: [Sync] Implement EstimateMemoryUsage for SharedModelTypeProcessor and ModelTypeWorker (Closed)
Patch Set: Fix lint errors Created 3 years, 9 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/proto_value_ptr.h
diff --git a/components/sync/base/proto_value_ptr.h b/components/sync/base/proto_value_ptr.h
index 89189b9412d383c88fe31f68d65338c7e4b32710..cd4a1ca17665691d94a11ad677d2dd64e58e47f8 100644
--- a/components/sync/base/proto_value_ptr.h
+++ b/components/sync/base/proto_value_ptr.h
@@ -7,6 +7,7 @@
#include "base/gtest_prod_util.h"
#include "base/memory/ref_counted.h"
+#include "base/trace_event/memory_usage_estimator.h"
namespace syncer {
@@ -127,6 +128,7 @@ class ProtoValuePtr {
template <typename T, typename Traits>
size_t EstimateMemoryUsage(const ProtoValuePtr<T, Traits>& ptr) {
+ using base::trace_event::EstimateMemoryUsage;
Patrick Noland 2017/03/29 19:42:54 Can you add a comment explaining what this is for?
pavely 2017/03/30 01:07:24 Done.
return &ptr.value() != &Traits::DefaultValue()
? EstimateMemoryUsage(ptr.value())
: 0;
« no previous file with comments | « no previous file | components/sync/engine/non_blocking_sync_common.h » ('j') | components/sync/engine_impl/model_type_worker.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698