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

Issue 99020: Add some histograms to see how often users click through blocking pages.... (Closed)

Created:
11 years, 8 months ago by abarth-chromium
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add some histograms to see how often users click through blocking pages. R=jar Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=14569

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -1 line) Patch
M chrome/browser/safe_browsing/safe_browsing_blocking_page.cc View 1 2 3 4 5 chunks +21 lines, -0 lines 1 comment Download
M chrome/browser/ssl/ssl_blocking_page.cc View 1 2 3 4 5 chunks +22 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
abarth-chromium
11 years, 8 months ago (2009-04-25 06:53:37 UTC) #1
jar (doing other things)
Although you can indeed get away with putting each stat in its own histogram (as ...
11 years, 8 months ago (2009-04-25 07:35:30 UTC) #2
abarth-chromium
11 years, 8 months ago (2009-04-26 20:11:26 UTC) #3
jim.roskind
LGTM... but... These events are in general pretty rare. If you consider the bias introduced ...
11 years, 8 months ago (2009-04-26 22:59:31 UTC) #4
abarth-chromium
That's a good point. I'm inclined to land this as-is for now. We can look ...
11 years, 8 months ago (2009-04-26 23:34:56 UTC) #5
jar (doing other things)
11 years, 8 months ago (2009-04-27 00:20:48 UTC) #6
OK.... pushing out a histogram soon would be a good thing, as you'll get data
and can go from there.  

I just realized one tiny change I'd suggest, and you can make it or not, the
LGTM is sticky ;-).

Be sure to look at your results using 
about:histograms
to be sure you're getting what you'd expect.  If you're having trouble
instigating the events, you can always use the debugger to at least force some
path's to be taken, and then make sure the histograms look fine.

http://codereview.chromium.org/99020/diff/11/1016
File chrome/browser/safe_browsing/safe_browsing_blocking_page.cc (right):

http://codereview.chromium.org/99020/diff/11/1016#newcode62
Line 62: static LinearHistogram histogram("interstial.safe_browsing", 0, 2, 4);
Looking at the unit test, and other examples, the more common set of numbers
(for min, max, count) would be:

1, N, N+1

In this case, perchance:

1, 3, 4 would be best.

Also note, that it is good to leave one additional bucket unused, as buckets are
defined as having a min and max value.  Hence the "top bucket" is always "N no
infinity".  This can cause problems if you later decide to add another bucket,
and then you have a distinct "N to N+1" and "N to infinity" coming from
different flavors of the histogram.

Powered by Google App Engine
This is Rietveld 408576698