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

Unified Diff: components/metrics/data_use_tracker.h

Issue 2770853002: Create Ukm ReportingService implementation. (Closed)
Patch Set: Fix register prefs 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
Index: components/metrics/data_use_tracker.h
diff --git a/components/metrics/data_use_tracker.h b/components/metrics/data_use_tracker.h
index e5eb2ba25fd66240d9a60a149158260bf7a2e3e3..bee12f9093409e206ba50fae0ad3a0a7f5d0b2c7 100644
--- a/components/metrics/data_use_tracker.h
+++ b/components/metrics/data_use_tracker.h
@@ -12,6 +12,7 @@
#include "base/macros.h"
#include "base/threading/thread_checker.h"
#include "base/time/time.h"
+#include "components/metrics/metrics_log_uploader.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
@@ -42,7 +43,9 @@ class DataUseTracker {
// Returns whether a log with provided |log_bytes| can be uploaded according
// to data use ratio and UMA quota provided by variations.
- bool ShouldUploadLogOnCellular(int log_bytes);
+ bool ShouldUploadLogOnCellular(
+ int log_bytes,
+ MetricsLogUploader::MetricServiceType service_type);
private:
FRIEND_TEST_ALL_PREFIXES(DataUseTrackerTest, CheckUpdateUsagePref);

Powered by Google App Engine
This is Rietveld 408576698