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

Issue 2257533005: Change logging of about:flags from actions to a histogram. (Closed)

Created:
4 years, 4 months ago by Alexei Svitkine (slow)
Modified:
3 years, 6 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change logging of about:flags from actions to a histogram. This CL deprecates all the "AboutFlags_*" actions and instead replaces their logging with a AboutFlags.Seen histogram, that has all the actions as enumerations. This new histogram is logged using the same code that logs Login.CustomFlags histogram on ChromeOS. Following this change, via separate CLs I plan to deprecate Login.CustomFlags in favor of AboutFlags.Seen and also make the new histogram get logged on Android, where I think it's currently not logged. BUG=639304 Committed: https://crrev.com/ab33c92ba610714412e7a572451bb58e5317c86f Cr-Commit-Position: refs/heads/master@{#415410}

Patch Set 1 #

Total comments: 9

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : Fix typo in header. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -119 lines) Patch
M chrome/browser/about_flags.h View 1 2 1 chunk +5 lines, -6 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 16 chunks +39 lines, -73 lines 2 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M tools/metrics/actions/actions.xml View 19 chunks +61 lines, -0 lines 0 comments Download
M tools/metrics/actions/extract_actions.py View 4 chunks +0 lines, -37 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (21 generated)
Alexei Svitkine (slow)
4 years, 3 months ago (2016-08-29 20:13:54 UTC) #11
Ilya Sherman
Thanks for picking this up, Alexei! https://codereview.chromium.org/2257533005/diff/40001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/2257533005/diff/40001/chrome/browser/about_flags.cc#newcode653 chrome/browser/about_flags.cc:653: // to "count ...
4 years, 3 months ago (2016-08-29 21:19:59 UTC) #13
Alexei Svitkine (slow)
Thanks - addressed comments. PTAL! https://codereview.chromium.org/2257533005/diff/40001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/2257533005/diff/40001/chrome/browser/about_flags.cc#newcode653 chrome/browser/about_flags.cc:653: // to "count users" ...
4 years, 3 months ago (2016-08-29 21:50:58 UTC) #15
Ilya Sherman
LGTM, thanks! https://codereview.chromium.org/2257533005/diff/60001/chrome/browser/about_flags.h File chrome/browser/about_flags.h (right): https://codereview.chromium.org/2257533005/diff/60001/chrome/browser/about_flags.h#newcode93 chrome/browser/about_flags.h:93: void ReportAboutFlagsHistogram(const std::string& uma_histogram_hame, nit: s/hame/name here ...
4 years, 3 months ago (2016-08-29 22:31:29 UTC) #17
Alexei Svitkine (slow)
https://codereview.chromium.org/2257533005/diff/60001/chrome/browser/about_flags.h File chrome/browser/about_flags.h (right): https://codereview.chromium.org/2257533005/diff/60001/chrome/browser/about_flags.h#newcode93 chrome/browser/about_flags.h:93: void ReportAboutFlagsHistogram(const std::string& uma_histogram_hame, On 2016/08/29 22:31:29, Ilya Sherman ...
4 years, 3 months ago (2016-08-30 15:04:22 UTC) #20
Alexei Svitkine (slow)
+thestig for chrome/ OWNERS
4 years, 3 months ago (2016-08-30 15:05:06 UTC) #22
Lei Zhang
lgtm
4 years, 3 months ago (2016-08-30 17:24:58 UTC) #23
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/2257533005/80001
4 years, 3 months ago (2016-08-30 17:32:29 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 3 months ago (2016-08-30 20:34:38 UTC) #28
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/ab33c92ba610714412e7a572451bb58e5317c86f Cr-Commit-Position: refs/heads/master@{#415410}
4 years, 3 months ago (2016-08-30 20:38:08 UTC) #30
Nico
https://codereview.chromium.org/2257533005/diff/80001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/2257533005/diff/80001/chrome/browser/about_flags.cc#newcode666 chrome/browser/about_flags.cc:666: // to calculate and verify checksum. Hm, this makes ...
3 years, 6 months ago (2017-06-14 21:28:00 UTC) #32
Alexei Svitkine (slow)
https://codereview.chromium.org/2257533005/diff/80001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/2257533005/diff/80001/chrome/browser/about_flags.cc#newcode666 chrome/browser/about_flags.cc:666: // to calculate and verify checksum. On 2017/06/14 21:27:58, ...
3 years, 6 months ago (2017-06-14 21:29:13 UTC) #33
Nico
On Wed, Jun 14, 2017 at 5:29 PM, <asvitkine@chromium.org> wrote: > > https://codereview.chromium.org/2257533005/diff/80001/ > chrome/browser/about_flags.cc ...
3 years, 6 months ago (2017-06-14 21:30:28 UTC) #34
Alexei Svitkine (slow)
3 years, 6 months ago (2017-06-14 21:34:16 UTC) #35
Message was sent while issue was closed.
Sorry, I should have been more clear - all the entries still needed to be
listed in the XML (regardless of the platform they applied to) even before
the change, despite the histogram previously only getting logged on CrOS.

Anyway, yes it makes it a bit more tedious, but the unit test failure
message I think makes it pretty clear what needs to be added.

On Wed, Jun 14, 2017 at 5:30 PM, Nico Weber <thakis@chromium.org> wrote:

> On Wed, Jun 14, 2017 at 5:29 PM, <asvitkine@chromium.org> wrote:
>
>>
>> https://codereview.chromium.org/2257533005/diff/80001/chrome
>> /browser/about_flags.cc
>> File chrome/browser/about_flags.cc (right):
>>
>> https://codereview.chromium.org/2257533005/diff/80001/chrome
>> /browser/about_flags.cc#newcode666
>> chrome/browser/about_flags.cc:666: // to calculate and verify checksum.
>> On 2017/06/14 21:27:58, Nico wrote:
>> > Hm, this makes adding flags harder than it used to be :-/ (ref
>> > https://codereview.chromium.org/2936273002/)
>>
>> Actually, this CL didn't change it - it was already the case before this
>> CL for a while that we had a histogram for this - it just used to be
>> CrOS only.
>>
>
> Which sounds like a change (?)
>
>
>>
>> https://codereview.chromium.org/2257533005/
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698