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

Unified Diff: components/ukm/ukm_service.h

Issue 2722113004: Flush UKM metrics when backgrounded on Android and iOS. (Closed)
Patch Set: add missing newline Created 3 years, 10 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/ukm/ukm_service.h
diff --git a/components/ukm/ukm_service.h b/components/ukm/ukm_service.h
index 1775d16a1b7fb69218939aeb0f1686f9e12e7306..e89be5b116effc53c647fdf3e611343007ce4127 100644
--- a/components/ukm/ukm_service.h
+++ b/components/ukm/ukm_service.h
@@ -65,6 +65,11 @@ class UkmService : public base::SupportsWeakPtr<UkmService> {
void EnableReporting();
void DisableReporting();
+#if defined(OS_ANDROID) || defined(OS_IOS)
+ void OnAppEnterBackground();
+ void OnAppEnterForeground();
+#endif
+
// Records any collected data into logs, and writes to disk.
void Flush();

Powered by Google App Engine
This is Rietveld 408576698