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

Unified Diff: components/metrics/metrics_log_manager.h

Issue 1030503003: Metrics log modification to handle external components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: newlinewq Created 5 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/metrics_log.cc ('k') | components/metrics/metrics_log_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/metrics_log_manager.h
diff --git a/components/metrics/metrics_log_manager.h b/components/metrics/metrics_log_manager.h
index 7fb28b38e1b4c2f042a6b533c1bc5ad5dfd76ed8..38815b5b94e36008960a423bfc62d0f853cc796a 100644
--- a/components/metrics/metrics_log_manager.h
+++ b/components/metrics/metrics_log_manager.h
@@ -90,10 +90,11 @@ class MetricsLogManager {
// Loads any unsent logs from persistent storage.
void LoadPersistedUnsentLogs();
- private:
- // Saves |log_data| as the given type.
+ // Saves |log_data| as the given type. Public to allow to push log created by
+ // external components.
void StoreLog(const std::string& log_data, MetricsLog::LogType log_type);
+ private:
// Tracks whether unsent logs (if any) have been loaded from the serializer.
bool unsent_logs_loaded_;
« no previous file with comments | « components/metrics/metrics_log.cc ('k') | components/metrics/metrics_log_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698