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

Issue 2129153002: Improve the comments around content settings histograms. (Closed)

Created:
4 years, 5 months ago by msramek
Modified:
3 years, 9 months ago
Reviewers:
raymes
CC:
chromium-reviews, markusheintz_, msramek+watch_chromium.org, raymes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve the comments around content settings histograms. 1. Explicitly mention that new histogram entries must be added to the end. This is necessary to keep consistent numbering of the histograms. However, it is not necessary for the ordering to be the same as in ContentSettingsType - in fact, the requirement to replace removed settings with placeholders means that there won't be perfect correspondence. 2. Refer to |kHistogramOrder| from content_settings_types.h, since ContentSettingsTypeHistogram does not exist anymore. 3. Remove the #ifdef for PROTECTED_MEDIA_IDENTIFIER in |kHistogramOrder|. PROTECTED_MEDIA_IDENTIFIER is not defined on some platforms, but that is true for many content settings; this is captured in WebsiteSettingsRegistry, and should not be specified in histograms. BUG=None

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -9 lines) Patch
M components/content_settings/core/common/content_settings.cc View 2 chunks +4 lines, -8 lines 0 comments Download
M components/content_settings/core/common/content_settings_types.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (2 generated)
msramek
Hi Raymes, please have a look! Thanks, Martin
4 years, 5 months ago (2016-07-08 10:46:42 UTC) #3
raymes
lgtm - Thanks Martin! It was suggested separately that we just hardcode the constants which ...
4 years, 5 months ago (2016-07-12 07:27:36 UTC) #4
msramek
On 2016/07/12 07:27:36, raymes wrote: > lgtm - Thanks Martin! > > It was suggested ...
4 years, 5 months ago (2016-07-12 14:18:50 UTC) #5
raymes
On 2016/07/12 14:18:50, msramek wrote: > On 2016/07/12 07:27:36, raymes wrote: > > lgtm - ...
4 years, 5 months ago (2016-07-13 01:44:03 UTC) #6
msramek
3 years, 9 months ago (2017-03-13 10:17:59 UTC) #7

Powered by Google App Engine
This is Rietveld 408576698