Index: components/metrics/metrics_state_manager.h |
diff --git a/components/metrics/metrics_state_manager.h b/components/metrics/metrics_state_manager.h |
index 30b6285a6a3f1e8efa2ffd3e420ff75120355ad1..0800748d2855abc28c5b723e97ac7ddb80f92f02 100644 |
--- a/components/metrics/metrics_state_manager.h |
+++ b/components/metrics/metrics_state_manager.h |
@@ -90,6 +90,7 @@ class MetricsStateManager { |
ENTROPY_SOURCE_NONE, |
ENTROPY_SOURCE_LOW, |
ENTROPY_SOURCE_HIGH, |
+ ENTROPY_SOURCE_ENUM_SIZE, |
}; |
// Creates the MetricsStateManager with the given |local_state|. Calls |
@@ -116,6 +117,10 @@ class MetricsStateManager { |
// generate the entropy source value if it has not been called before. |
int GetLowEntropySource(); |
+ // Updates |entropy_source_returned_| with |type| if the current value is |
rkaplow
2015/02/24 23:03:24
nit: change if to iff to make it clear nothing hap
Alexei Svitkine (slow)
2015/02/25 16:12:57
Done.
|
+ // ENTROPY_SOURCE_NONE and logs the new value in a histogram. |
+ void UpdateEntropySourceReturnedValue(EntropySourceType type); |
+ |
// Returns the first entropy source that was returned by this service since |
// start up, or NONE if neither was returned yet. This is exposed for testing |
// only. |