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

Unified Diff: components/ukm/ukm_entry_builder.cc

Issue 2893943004: Refactor UKM interface for mojo-ification (Closed)
Patch Set: Fixed contextualsearch 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_builder.h ('k') | components/ukm/ukm_recorder_impl.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
deleted file mode 100644
index fdff949038c67908bcae8bd96b215a0bc48ceb61..0000000000000000000000000000000000000000
--- a/components/ukm/ukm_entry_builder.cc
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/ukm/ukm_entry_builder.h"
-
-#include "base/metrics/metrics_hashes.h"
-#include "components/ukm/ukm_entry.h"
-#include "components/ukm/ukm_service.h"
-
-namespace ukm {
-
-UkmEntryBuilder::UkmEntryBuilder(const UkmService::AddEntryCallback& callback,
- int32_t source_id,
- const char* event_name)
- : add_entry_callback_(callback),
- entry_(new UkmEntry(source_id, event_name)) {}
-
-UkmEntryBuilder::~UkmEntryBuilder() {
- add_entry_callback_.Run(std::move(entry_));
-}
-
-void UkmEntryBuilder::AddMetric(const char* metric_name, int64_t value) {
- entry_->metrics_.emplace_back(
- std::make_pair(base::HashMetricName(metric_name), value));
-}
-
-} // namespace ukm
« no previous file with comments | « components/ukm/ukm_entry_builder.h ('k') | components/ukm/ukm_recorder_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698