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

Unified Diff: components/autofill/core/browser/autofill_metrics_unittest.cc

Issue 2737953002: UKM: Remove UkmService::RecordSource (Closed)
Patch Set: fix error from rebase 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
« no previous file with comments | « components/autofill/core/browser/autofill_manager_unittest.cc ('k') | components/ukm/test_ukm_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/autofill_metrics_unittest.cc
diff --git a/components/autofill/core/browser/autofill_metrics_unittest.cc b/components/autofill/core/browser/autofill_metrics_unittest.cc
index 36039f5f382fd2ec4a5eefbe9cb9b8072fb09d69..efea6e76cab0aafd11a2a5053fff1cb525bda757 100644
--- a/components/autofill/core/browser/autofill_metrics_unittest.cc
+++ b/components/autofill/core/browser/autofill_metrics_unittest.cc
@@ -4385,7 +4385,8 @@ TEST_F(AutofillMetricsTest, RecordCardUploadDecisionMetric) {
ukm_service_test_harness.test_ukm_service();
ASSERT_EQ(1U, ukm_service->sources_count());
- const ukm::UkmSource* source = ukm_service->GetSource(0);
+ const ukm::UkmSource* source =
+ ukm_service->GetSourceForUrl(url.spec().c_str());
EXPECT_EQ(url.spec(), source->url().spec());
EXPECT_EQ(1U, ukm_service->entries_count());
« no previous file with comments | « components/autofill/core/browser/autofill_manager_unittest.cc ('k') | components/ukm/test_ukm_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698