Chromium Code Reviews| Index: components/cronet/histogram_manager.cc |
| diff --git a/components/cronet/histogram_manager.cc b/components/cronet/histogram_manager.cc |
| index 4ec3adffb30b5cf39c9b07f8d0e8aeace32d04ef..3ab21cf45466468d063e5c335c8bb5c453984c99 100644 |
| --- a/components/cronet/histogram_manager.cc |
| +++ b/components/cronet/histogram_manager.cc |
| @@ -53,6 +53,7 @@ void HistogramManager::InconsistencyDetectedInLoggedCount(int amount) { |
| } |
| bool HistogramManager::GetDeltas(std::vector<uint8_t>* data) { |
| + base::AutoLock lock(lock_); |
|
bcwhite
2016/04/13 14:12:52
It doesn't make sense to make multiple, parallel c
pauljensen
2016/04/13 14:29:45
It may not make sense to do this, but we shouldn't
bcwhite
2016/04/13 14:42:18
If this method were to be called while some "futur
|
| // Clear the protobuf between calls. |
| uma_proto_.Clear(); |
| // "false" to StatisticsRecorder::begin() indicates to *not* include |