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

Unified Diff: components/ukm/ukm_entry_builder.cc

Issue 2857983006: Allow empty UKM entries to be recorded. (Closed)
Patch Set: Created 3 years, 7 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/ukm/ukm_entry.cc ('k') | components/ukm/ukm_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ukm/ukm_entry_builder.cc
diff --git a/components/ukm/ukm_entry_builder.cc b/components/ukm/ukm_entry_builder.cc
index fd640342ba5d4124319121d70e9432cf0ad1911f..fdff949038c67908bcae8bd96b215a0bc48ceb61 100644
--- a/components/ukm/ukm_entry_builder.cc
+++ b/components/ukm/ukm_entry_builder.cc
@@ -17,9 +17,6 @@ UkmEntryBuilder::UkmEntryBuilder(const UkmService::AddEntryCallback& callback,
entry_(new UkmEntry(source_id, event_name)) {}
UkmEntryBuilder::~UkmEntryBuilder() {
- if (entry_->metrics_.empty())
- return;
-
add_entry_callback_.Run(std::move(entry_));
}
« no previous file with comments | « components/ukm/ukm_entry.cc ('k') | components/ukm/ukm_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698