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

Unified Diff: content/browser/background_sync/background_sync_metrics.h

Issue 1614063002: [BackgroundSync Cleanup] Remove periodic sync code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@purge_power
Patch Set: Address comments from PS3 Created 4 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: content/browser/background_sync/background_sync_metrics.h
diff --git a/content/browser/background_sync/background_sync_metrics.h b/content/browser/background_sync/background_sync_metrics.h
index f92a7c5b7a3f6dd6f1e26cf36d820132f309dbe0..891e11494cd71f591c4386324eca222c1f5cbbe9 100644
--- a/content/browser/background_sync/background_sync_metrics.h
+++ b/content/browser/background_sync/background_sync_metrics.h
@@ -29,13 +29,10 @@ class BackgroundSyncMetrics {
};
// Records the start of a sync event.
- static void RecordEventStarted(SyncPeriodicity periodicity,
- bool startedin_foreground);
+ static void RecordEventStarted(bool startedin_foreground);
// Records the result of a single sync event firing.
- static void RecordEventResult(SyncPeriodicity periodicity,
- bool result,
- bool finished_in_foreground);
+ static void RecordEventResult(bool result, bool finished_in_foreground);
// Records the result of running a batch of sync events, including the total
// time spent, and the batch size.
@@ -46,17 +43,14 @@ class BackgroundSyncMetrics {
// indicates whether the conditions were sufficient for the sync to fire
// immediately at the time it was registered.
static void CountRegisterSuccess(
- SyncPeriodicity periodicity,
RegistrationCouldFire could_fire,
RegistrationIsDuplicate registration_is_duplicate);
// Records the status of a failed sync registration.
- static void CountRegisterFailure(SyncPeriodicity periodicity,
- BackgroundSyncStatus status);
+ static void CountRegisterFailure(BackgroundSyncStatus status);
// Records the result of trying to unregister a sync.
- static void CountUnregister(SyncPeriodicity periodicity,
- BackgroundSyncStatus result);
+ static void CountUnregister(BackgroundSyncStatus result);
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(BackgroundSyncMetrics);

Powered by Google App Engine
This is Rietveld 408576698