DescriptionMake metrics state machine more lenient about OLD vs. CURRENT
Instead of DCHECKing (and then later crashing) if the state machine thinks it should be uploading old logs, but there aren't any, just advance the state and return.
This should prevent crashing in edge cases where something else has gone wrong and the state is out of sync.
Also change StageNextLogForUpload to CHECK instead of DCHECK that there is a next log before doing a swap(), since swap()ing in garbage pointers leads to hard-to-understand crashes later.
BUG=135285
TEST=None
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146064
Patch Set 1 #
Total comments: 6
Patch Set 2 : Add missing return #
Messages
Total messages: 7 (0 generated)
|