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

Issue 492463002: Remove DCHECKs that no longer reflect reality. (Closed)

Created:
6 years, 4 months ago by Alexei Svitkine (slow)
Modified:
6 years, 4 months ago
Reviewers:
Ilya Sherman
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

Remove DCHECKs that no longer reflect reality. It used to be that CreateEntropyProvider() was only called once in a process, during the init sequence, and then never again. So previously, these DCHECKs could never fire by virtue of the function always being called once. Now that this function is called by VariationsService when simulating new variations seeds, it will be called multiple times during the process life time. It's perfectly valid to return an entropy provider that uses a different entropy source in that context (e.g. post changing your UMA opt-in setting), since that's exactly what the simulation code wants (i.e. it simulates what will happen on a restart). So simply remove the checks, since their conditions no longer hold. BUG=405010 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290706

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -2 lines) Patch
M components/metrics/metrics_state_manager.cc View 2 chunks +0 lines, -2 lines 2 comments Download

Messages

Total messages: 8 (0 generated)
Alexei Svitkine (slow)
6 years, 4 months ago (2014-08-19 18:07:12 UTC) #1
Ilya Sherman
https://codereview.chromium.org/492463002/diff/1/components/metrics/metrics_state_manager.cc File components/metrics/metrics_state_manager.cc (left): https://codereview.chromium.org/492463002/diff/1/components/metrics/metrics_state_manager.cc#oldcode164 components/metrics/metrics_state_manager.cc:164: entropy_source_returned_ = ENTROPY_SOURCE_HIGH; Is this if stmt, as well ...
6 years, 4 months ago (2014-08-19 21:04:14 UTC) #2
Alexei Svitkine (slow)
https://codereview.chromium.org/492463002/diff/1/components/metrics/metrics_state_manager.cc File components/metrics/metrics_state_manager.cc (left): https://codereview.chromium.org/492463002/diff/1/components/metrics/metrics_state_manager.cc#oldcode164 components/metrics/metrics_state_manager.cc:164: entropy_source_returned_ = ENTROPY_SOURCE_HIGH; On 2014/08/19 21:04:14, Ilya Sherman wrote: ...
6 years, 4 months ago (2014-08-19 21:10:25 UTC) #3
Ilya Sherman
Alrighty. LGTM.
6 years, 4 months ago (2014-08-19 21:55:40 UTC) #4
Alexei Svitkine (slow)
The CQ bit was checked by asvitkine@chromium.org
6 years, 4 months ago (2014-08-19 22:07:01 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/492463002/1
6 years, 4 months ago (2014-08-19 22:12:16 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_compile_dbg on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-19 23:15:59 UTC) #7
commit-bot: I haz the power
6 years, 4 months ago (2014-08-20 00:04:58 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (1) as 290706

Powered by Google App Engine
This is Rietveld 408576698