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

Unified Diff: components/metrics_services_manager/metrics_services_manager.cc

Issue 2936733002: Instrumentation to debug actions memory leak.
Patch Set: rebase 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/metrics/metrics_service_accessor.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics_services_manager/metrics_services_manager.cc
diff --git a/components/metrics_services_manager/metrics_services_manager.cc b/components/metrics_services_manager/metrics_services_manager.cc
index 0bd70581f815c7039ad76cac67df019eca127ba2..9d08493788551404cebc004b65c712b51c26776f 100644
--- a/components/metrics_services_manager/metrics_services_manager.cc
+++ b/components/metrics_services_manager/metrics_services_manager.cc
@@ -8,6 +8,7 @@
#include "base/command_line.h"
#include "base/logging.h"
+#include "base/metrics/histogram_macros.h"
#include "components/metrics/metrics_service.h"
#include "components/metrics/metrics_service_client.h"
#include "components/metrics/metrics_state_manager.h"
@@ -83,6 +84,8 @@ MetricsServicesManager::GetMetricsServiceClient() {
void MetricsServicesManager::UpdatePermissions(bool current_may_record,
bool current_may_upload) {
DCHECK(thread_checker_.CalledOnValidThread());
+ UMA_HISTOGRAM_BOOLEAN("UMA.Dbg.UpdatePermissions.may_record", current_may_record);
+ UMA_HISTOGRAM_BOOLEAN("UMA.Dbg.UpdatePermissions.may_upload", current_may_upload);
// If the user has opted out of metrics, delete local UKM state.
if (may_record_ && !current_may_record) {
ukm::UkmService* ukm = GetUkmService();
« no previous file with comments | « components/metrics/metrics_service_accessor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698