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

Unified Diff: components/metrics/metrics_service.h

Issue 2517363002: Decouple Metrics Initialization from IO Thread Initialization (Closed)
Patch Set: Fix Unit Test Created 4 years 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/metrics_service.h
diff --git a/components/metrics/metrics_service.h b/components/metrics/metrics_service.h
index 3f19a5b34908cc7400440e78062200edc524edd7..523112048268d0bb956eacf1135101fee2af220e 100644
--- a/components/metrics/metrics_service.h
+++ b/components/metrics/metrics_service.h
@@ -206,9 +206,9 @@ class MetricsService : public base::HistogramFlattener {
// Pushes a log that has been generated by an external component.
void PushExternalLog(const std::string& log);
- // Returns a callback to data use pref updating function which can be called
- // from any thread, but this function should be called on UI thread.
- UpdateUsagePrefCallbackType GetDataUseForwardingCallback();
+ // Updates data usage prefs according to what the PrefService expects.
+ void UpdateMetricsUsagePrefs(
+ const std::string& service_name, int message_size, bool is_cellular);
// Merge any data from metrics providers into the global StatisticsRecorder.
void MergeHistogramDeltas();

Powered by Google App Engine
This is Rietveld 408576698