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

Unified Diff: components/sync/driver/model_type_controller.cc

Issue 2949923004: Reland: [Sync] Record sync memory usage in histogram broken by datatypes (Closed)
Patch Set: Fix linker error Created 3 years, 6 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/driver/model_type_controller.h ('k') | components/sync/driver/proxy_data_type_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/driver/model_type_controller.cc
diff --git a/components/sync/driver/model_type_controller.cc b/components/sync/driver/model_type_controller.cc
index 8e98059415eaecb64f5cac21c0e69bfda79a9217..5f67856938aa6c7ece367f49599cad6dfae3b5ec 100644
--- a/components/sync/driver/model_type_controller.cc
+++ b/components/sync/driver/model_type_controller.cc
@@ -236,6 +236,11 @@ void ModelTypeController::GetStatusCounters(
base::Bind(&ModelTypeDebugInfo::GetStatusCounters, callback));
}
+void ModelTypeController::RecordMemoryUsageHistogram() {
+ PostBridgeTask(FROM_HERE,
+ base::Bind(&ModelTypeDebugInfo::RecordMemoryUsageHistogram));
+}
+
void ModelTypeController::ReportModelError(const ModelError& error) {
DCHECK(CalledOnValidThread());
LoadModelsDone(UNRECOVERABLE_ERROR,
« no previous file with comments | « components/sync/driver/model_type_controller.h ('k') | components/sync/driver/proxy_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698