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

Issue 2421143002: Fix broken clockstate.network2 histogram and add unit test (Closed)

Created:
4 years, 2 months ago by estark
Modified:
4 years, 2 months ago
Reviewers:
jwd, meacer
CC:
chromium-reviews, asvitkine+watch_chromium.org, mab
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix broken clockstate.network2 histogram and add unit test The 'interstitial.clockstate.network2' histogram has been recording the wrong enum, meaning that the reported values were mislabeled, and also the enum that was actually being histogrammed has changed around recently. Thus, this CL deprecates the bogus network2 histogram and replaces it with the network3 histogram that records the correct enum. It also adds a unit test to check that values for this histogram are properly recorded. BUG=589700 Committed: https://crrev.com/27f12b4b0b0c0ad0dd04667bb0dca00487438b62 Cr-Commit-Position: refs/heads/master@{#426035}

Patch Set 1 #

Total comments: 11

Patch Set 2 : meacer suggestion: move field trial into test util #

Unified diffs Side-by-side diffs Delta from patch set Stats (+355 lines, -90 lines) Patch
M components/network_time/BUILD.gn View 1 2 chunks +16 lines, -0 lines 0 comments Download
A components/network_time/network_time_test_utils.h View 1 1 chunk +42 lines, -0 lines 0 comments Download
A components/network_time/network_time_test_utils.cc View 1 1 chunk +63 lines, -0 lines 0 comments Download
M components/network_time/network_time_tracker_unittest.cc View 1 4 chunks +2 lines, -54 lines 0 comments Download
M components/ssl_errors/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/ssl_errors/error_classification.h View 1 chunk +35 lines, -0 lines 0 comments Download
M components/ssl_errors/error_classification.cc View 2 chunks +2 lines, -35 lines 0 comments Download
M components/ssl_errors/error_classification_unittest.cc View 1 7 chunks +179 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (14 generated)
estark
jwd: please review histograms.xml meacer: please review the rest Thanks!
4 years, 2 months ago (2016-10-16 18:32:15 UTC) #6
meacer
https://codereview.chromium.org/2421143002/diff/1/components/network_time/network_time_tracker.cc File components/network_time/network_time_tracker.cc (right): https://codereview.chromium.org/2421143002/diff/1/components/network_time/network_time_tracker.cc#newcode508 components/network_time/network_time_tracker.cc:508: !enable_time_queries_for_testing_) { Instead of adding a bool, can the ...
4 years, 2 months ago (2016-10-17 21:35:20 UTC) #9
estark
https://codereview.chromium.org/2421143002/diff/1/components/network_time/network_time_tracker.cc File components/network_time/network_time_tracker.cc (right): https://codereview.chromium.org/2421143002/diff/1/components/network_time/network_time_tracker.cc#newcode508 components/network_time/network_time_tracker.cc:508: !enable_time_queries_for_testing_) { On 2016/10/17 21:35:20, Mustafa Emre Acer wrote: ...
4 years, 2 months ago (2016-10-17 21:45:37 UTC) #10
meacer
Lgtm % enable_time_queries_for_testing_ question https://codereview.chromium.org/2421143002/diff/1/components/network_time/network_time_tracker.cc File components/network_time/network_time_tracker.cc (right): https://codereview.chromium.org/2421143002/diff/1/components/network_time/network_time_tracker.cc#newcode309 components/network_time/network_time_tracker.cc:309: enable_time_queries_for_testing_ = true; If you ...
4 years, 2 months ago (2016-10-17 23:45:48 UTC) #11
estark
https://codereview.chromium.org/2421143002/diff/1/components/network_time/network_time_tracker.cc File components/network_time/network_time_tracker.cc (right): https://codereview.chromium.org/2421143002/diff/1/components/network_time/network_time_tracker.cc#newcode508 components/network_time/network_time_tracker.cc:508: !enable_time_queries_for_testing_) { On 2016/10/17 23:45:48, Mustafa Emre Acer wrote: ...
4 years, 2 months ago (2016-10-18 03:58:37 UTC) #14
estark
Friendly ping to jwd
4 years, 2 months ago (2016-10-18 18:47:15 UTC) #17
meacer
LGTM again, thanks for making the util change.
4 years, 2 months ago (2016-10-18 19:48:51 UTC) #18
jwd
lgtm
4 years, 2 months ago (2016-10-18 20:16:08 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2421143002/20001
4 years, 2 months ago (2016-10-18 20:20:36 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-18 20:30:48 UTC) #23
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:02:45 UTC) #25
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/27f12b4b0b0c0ad0dd04667bb0dca00487438b62
Cr-Commit-Position: refs/heads/master@{#426035}

Powered by Google App Engine
This is Rietveld 408576698