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

Issue 2868082: AutoFill: Collect UMA stats for AutoFill CC InfoBar. (Closed)

Created:
10 years, 4 months ago by James Hawkins
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org
Visibility:
Public.

Description

AutoFill: Collect UMA stats for AutoFill CC InfoBar. BUG=50573 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=54185

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M chrome/browser/autofill/autofill_cc_infobar_delegate.cc View 3 chunks +3 lines, -0 lines 1 comment Download

Messages

Total messages: 3 (0 generated)
James Hawkins
10 years, 4 months ago (2010-07-29 20:52:58 UTC) #1
dhollowa
LGTM.
10 years, 4 months ago (2010-07-29 20:53:43 UTC) #2
jar (doing other things)
10 years, 3 months ago (2010-09-17 16:43:11 UTC) #3
http://codereview.chromium.org/2868082/diff/1/2
File chrome/browser/autofill/autofill_cc_infobar_delegate.cc (right):

http://codereview.chromium.org/2868082/diff/1/2#newcode84
chrome/browser/autofill/autofill_cc_infobar_delegate.cc:84:
UMA_HISTOGRAM_COUNTS("AutoFill.CCInfoBarAccepted", 1);
Rather than using two separate histograms, you should have had a common function
that records one histogram, with two distinct enumerated values.  That way you
could see the ratios of the counts directly (rather than using a histogram as a
solo counter).  Note that each of the above HISTOGRAM_COUNTS cost about 1K of
storage, whereas a single small HISTOGRAM_ENUMERATION would probably use barely
100 bytes.... and also reduce upload bandwidth and log storage costs etc.

Please feel free to ask for a code review when you're creating future histograms
as well.

Powered by Google App Engine
This is Rietveld 408576698