Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Issue 10692059: Make metrics state machine more lenient about OLD vs. CURRENT (Closed)

Created:
8 years, 5 months ago by stuartmorgan
Modified:
8 years, 5 months ago
CC:
chromium-reviews, MAD, Ilya Sherman, jar (doing other things)
Visibility:
Public.

Description

Make 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -3 lines) Patch
M chrome/browser/metrics/metrics_service.cc View 1 2 chunks +11 lines, -2 lines 0 comments Download
M chrome/common/metrics/metrics_log_manager.cc View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
stuartmorgan
This is slightly speculative, but swapping in bad pointers in the staging is the only ...
8 years, 5 months ago (2012-07-02 13:25:25 UTC) #1
Ilya Sherman
https://chromiumcodereview.appspot.com/10692059/diff/1/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (left): https://chromiumcodereview.appspot.com/10692059/diff/1/chrome/browser/metrics/metrics_service.cc#oldcode759 chrome/browser/metrics/metrics_service.cc:759: state_ = SENDING_OLD_LOGS; Hmm, why is this no longer ...
8 years, 5 months ago (2012-07-09 16:12:54 UTC) #2
jar (doing other things)
https://chromiumcodereview.appspot.com/10692059/diff/1/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (left): https://chromiumcodereview.appspot.com/10692059/diff/1/chrome/browser/metrics/metrics_service.cc#oldcode759 chrome/browser/metrics/metrics_service.cc:759: state_ = SENDING_OLD_LOGS; Can you motivate this removal? https://chromiumcodereview.appspot.com/10692059/diff/1/chrome/browser/metrics/metrics_service.cc ...
8 years, 5 months ago (2012-07-09 16:38:04 UTC) #3
stuartmorgan
https://chromiumcodereview.appspot.com/10692059/diff/1/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (left): https://chromiumcodereview.appspot.com/10692059/diff/1/chrome/browser/metrics/metrics_service.cc#oldcode759 chrome/browser/metrics/metrics_service.cc:759: state_ = SENDING_OLD_LOGS; On 2012/07/09 16:38:04, jar wrote: > ...
8 years, 5 months ago (2012-07-10 07:26:25 UTC) #4
jar (doing other things)
lgtm
8 years, 5 months ago (2012-07-10 16:06:52 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stuartmorgan@chromium.org/10692059/6001
8 years, 5 months ago (2012-07-11 04:54:55 UTC) #6
commit-bot: I haz the power
8 years, 5 months ago (2012-07-11 06:01:36 UTC) #7
Change committed as 146064

Powered by Google App Engine
This is Rietveld 408576698