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

Unified Diff: components/metrics/data_use_tracker_unittest.cc

Issue 2770853002: Create Ukm ReportingService implementation. (Closed)
Patch Set: Also revert datatracker unittest change 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/metrics/data_use_tracker.cc ('k') | components/metrics/metrics_pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/data_use_tracker_unittest.cc
diff --git a/components/metrics/data_use_tracker_unittest.cc b/components/metrics/data_use_tracker_unittest.cc
index 3e3e73c268b45571e597684800343f3fe766ed52..a271b5d4d250a2b3bc4c7526952e92bb46b425d2 100644
--- a/components/metrics/data_use_tracker_unittest.cc
+++ b/components/metrics/data_use_tracker_unittest.cc
@@ -21,10 +21,7 @@ const char kExpiredDateStr2[] = "2016-03-01";
class TestDataUsePrefService : public TestingPrefServiceSimple {
public:
- TestDataUsePrefService() {
- registry()->RegisterDictionaryPref(metrics::prefs::kUserCellDataUse);
- registry()->RegisterDictionaryPref(metrics::prefs::kUmaCellDataUse);
- }
+ TestDataUsePrefService() { DataUseTracker::RegisterPrefs(registry()); }
void ClearDataUsePrefs() {
ClearPref(metrics::prefs::kUserCellDataUse);
« no previous file with comments | « components/metrics/data_use_tracker.cc ('k') | components/metrics/metrics_pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698