| Index: components/ukm/ukm_service.cc
|
| diff --git a/components/ukm/ukm_service.cc b/components/ukm/ukm_service.cc
|
| index c672167d72cb3ef1ccf55b2077df764efa18b701..a43f426f346986148a9a15738dfc4f7c2a885207 100644
|
| --- a/components/ukm/ukm_service.cc
|
| +++ b/components/ukm/ukm_service.cc
|
| @@ -408,7 +408,10 @@ void UkmService::OnLogUploadComplete(int response_code) {
|
| }
|
|
|
| if (upload_succeeded || discard_log) {
|
| - persisted_logs_.DiscardStagedLog();
|
| + // TODO(holte): The if below is a temporary fix for a crash bug. We should
|
| + // revisit the logic and update it with a more correct fix. crbug.com/698819
|
| + if (persisted_logs_.has_staged_log())
|
| + persisted_logs_.DiscardStagedLog();
|
| // Store the updated list to disk now that the removed log is uploaded.
|
| persisted_logs_.PersistUnsentLogs();
|
| }
|
|
|