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

Unified Diff: components/metrics/persisted_logs.h

Issue 2567263003: Basic UkmService implementation (Closed)
Patch Set: Rebase Created 3 years, 11 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/persisted_logs.h
diff --git a/components/metrics/persisted_logs.h b/components/metrics/persisted_logs.h
index 18a80008dbea37c5eda518c9584589f161a16a1e..690dee8ed5855428066e9d977793058a5cada4e2 100644
--- a/components/metrics/persisted_logs.h
+++ b/components/metrics/persisted_logs.h
@@ -76,6 +76,9 @@ class PersistedLogs {
// Remove the staged log.
void DiscardStagedLog();
+ // Delete all logs, in memory and on disk.
+ void Purge();
+
// True if a log has been staged.
bool has_staged_log() const { return staged_log_index_ != -1; }

Powered by Google App Engine
This is Rietveld 408576698