New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 798603 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Chrome histogram "Security.TreatInsecureOriginAsSecure" is not reported

Project Member Reported by fdegros@chromium.org, Jan 2 2018

Issue description

Chrome histogram "Security.TreatInsecureOriginAsSecure" is registered before StatisticsRecorder is even initialized. As a consequence, it is "lost" and doesn't appear in chrome://histograms. For that reason, it is probably not uploaded as UMA metrics either.
 
Status: Assigned (was: Untriaged)
Project Member

Comment 2 by bugdroid1@chromium.org, Jan 8 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/e3226102363fa5a99183cfd891dd614e89896332

commit e3226102363fa5a99183cfd891dd614e89896332
Author: François Degros <fdegros@chromium.org>
Date: Mon Jan 08 01:18:30 2018

StatisticsRecorder doesn't need to be explicitly initialized.

StatisticsRecorder automatically and lazily initializes itself when necessary.
This simplifies its API and makes it less tricky to use. It removes pitfalls
where some methods were a no-op or would crash when StatisticsRecorder wasn't
initialized whereas the same methods had side effects when StatisticsRecorder
was initialized. Now, all methods always act as advertised.

This also means that histograms like Security.TreatInsecureOriginAsSecure that
used to be registered before StatisticsRecorder was initialized are not lost
anymore and are now correctly recorded.

Added comments.

Change-Id: Iac359538f0dba6169a6fc3f7f3b71b8e8d682944
Bug:  798603 
Reviewed-on: https://chromium-review.googlesource.com/846586
Commit-Queue: François Degros <fdegros@chromium.org>
Reviewed-by: Alexei Svitkine <asvitkine@chromium.org>
Cr-Commit-Position: refs/heads/master@{#527553}
[modify] https://crrev.com/e3226102363fa5a99183cfd891dd614e89896332/base/metrics/statistics_recorder.cc
[modify] https://crrev.com/e3226102363fa5a99183cfd891dd614e89896332/base/metrics/statistics_recorder.h
[modify] https://crrev.com/e3226102363fa5a99183cfd891dd614e89896332/base/metrics/statistics_recorder_unittest.cc

Status: Fixed (was: Assigned)

Sign in to add a comment