DescriptionImplement a persistent storage aggregation counter class.
This class is currently used to aggregate the active daily use time
but can also be used to aggregate other data (e.g., active use time
between crashes) before sending to UMA. Abstracting this in a separate
class also simplifies the daemon unit tests.
An alternative design would store the data on shutdown (but may slow
down shutdown a little). This should do it for now.
BUG=none
TEST=gmerged on device,inspected logs,about:histograms,etc.
Patch Set 1 #Patch Set 2 : whitespace #
Total comments: 32
Patch Set 3 : Address review comments. Callback mock fix. #Patch Set 4 : Address kmixter's comments. #
Messages
Total messages: 6 (0 generated)
|