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

Issue 10787023: Adding UMA stats. (Closed)

Created:
8 years, 5 months ago by zysxqn
Modified:
8 years, 5 months ago
CC:
chromium-reviews, dhollowa+watch_chromium.org, brettw-cc_chromium.org, dyu1, darin-cc_chromium.org
Visibility:
Public.

Description

First version to add some UMA stats to the chrome histograms. This change covers most part of the main flow chart along the password generation function, including: - detected account creation form - password generation icon shown - password generation bubble shown (Linux) - regeneration password button clicked (Linux) - password entry edited by users (Linux) - learn more link clicked (Linux) - generated password accepted (Linux) - generated password submitted All this are simple counters for now and Windows UI will come next as a separate CL. BUG=130330 TEST=unit tests, browser tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=147757

Patch Set 1 #

Total comments: 6

Patch Set 2 : Change to enumeration histogram. #

Patch Set 3 : A nit. #

Patch Set 4 : #

Patch Set 5 : Another nit. #

Patch Set 6 : Fix the test. #

Total comments: 10

Patch Set 7 : Don't update histograms in the renderer. #

Total comments: 18

Patch Set 8 : Some nits. #

Total comments: 2

Patch Set 9 : More comments. #

Total comments: 6

Patch Set 10 : Separate renderer histogram and browser histogram. #

Total comments: 5

Patch Set 11 : Add one more stat. #

Patch Set 12 : #

Patch Set 13 : Fix a compiler error. #

Patch Set 14 : Avoid using anonymous enum. #

Patch Set 15 : Rename IGNORE. #

Patch Set 16 : A typo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -3 lines) Patch
M chrome/browser/password_manager/password_manager.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/password_generation_bubble_gtk.h View 1 2 3 4 5 6 7 8 9 4 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/password_generation_bubble_gtk.cc View 1 2 3 4 5 6 7 8 9 4 chunks +16 lines, -1 line 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/common/password_generation_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 14 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/common/password_generation_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +66 lines, -0 lines 0 comments Download
M chrome/renderer/autofill/password_generation_manager.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (0 generated)
zysxqn
8 years, 5 months ago (2012-07-16 21:59:01 UTC) #1
Garrett Casto
It would be nice if we could consolidate these more into some common location so ...
8 years, 5 months ago (2012-07-16 22:32:39 UTC) #2
Ilya Sherman
I strongly recommend using an enumerated histogram (or several, as appropriate), rather than lots of ...
8 years, 5 months ago (2012-07-16 22:33:02 UTC) #3
zysxqn
Hmm, I'm not sure enumerated histogram would give us much advantage in this case, since ...
8 years, 5 months ago (2012-07-17 17:02:04 UTC) #4
Ilya Sherman
On 2012/07/17 17:02:04, zysxqn wrote: > Hmm, I'm not sure enumerated histogram would give us ...
8 years, 5 months ago (2012-07-17 22:56:08 UTC) #5
zysxqn
This makes sense to me. I will update the code shortly. Thanks! On Tue, Jul ...
8 years, 5 months ago (2012-07-18 00:34:14 UTC) #6
zysxqn
This update has two major changes: (1) User enumeration histogram and we have two histograms ...
8 years, 5 months ago (2012-07-18 01:00:59 UTC) #7
Ilya Sherman
http://codereview.chromium.org/10787023/diff/10012/chrome/browser/password_manager/password_manager.cc File chrome/browser/password_manager/password_manager.cc (right): http://codereview.chromium.org/10787023/diff/10012/chrome/browser/password_manager/password_manager.cc#newcode245 chrome/browser/password_manager/password_manager.cc:245: UMA_HISTOGRAM_ENUMERATION("PasswordGeneration.EVENTS", This histogram name does not match the name ...
8 years, 5 months ago (2012-07-18 05:36:15 UTC) #8
Ilya Sherman
http://codereview.chromium.org/10787023/diff/10012/chrome/browser/ui/gtk/password_generation_bubble_gtk.cc File chrome/browser/ui/gtk/password_generation_bubble_gtk.cc (right): http://codereview.chromium.org/10787023/diff/10012/chrome/browser/ui/gtk/password_generation_bubble_gtk.cc#newcode118 chrome/browser/ui/gtk/password_generation_bubble_gtk.cc:118: password_generation_status_)); On 2012/07/18 05:36:15, Ilya Sherman wrote: > What's ...
8 years, 5 months ago (2012-07-18 05:38:14 UTC) #9
zysxqn
On Tue, Jul 17, 2012 at 10:38 PM, <isherman@chromium.org> wrote: > > http://codereview.chromium.**org/10787023/diff/10012/** > chrome/browser/ui/gtk/**password_generation_bubble_**gtk.cc<http://codereview.chromium.org/10787023/diff/10012/chrome/browser/ui/gtk/password_generation_bubble_gtk.cc> ...
8 years, 5 months ago (2012-07-18 16:38:14 UTC) #10
Garrett Casto
http://codereview.chromium.org/10787023/diff/10012/chrome/browser/ui/gtk/password_generation_bubble_gtk.cc File chrome/browser/ui/gtk/password_generation_bubble_gtk.cc (right): http://codereview.chromium.org/10787023/diff/10012/chrome/browser/ui/gtk/password_generation_bubble_gtk.cc#newcode118 chrome/browser/ui/gtk/password_generation_bubble_gtk.cc:118: password_generation_status_)); On 2012/07/18 05:38:14, Ilya Sherman wrote: > On ...
8 years, 5 months ago (2012-07-18 17:20:02 UTC) #11
zysxqn
http://codereview.chromium.org/10787023/diff/10012/chrome/browser/password_manager/password_manager.cc File chrome/browser/password_manager/password_manager.cc (right): http://codereview.chromium.org/10787023/diff/10012/chrome/browser/password_manager/password_manager.cc#newcode245 chrome/browser/password_manager/password_manager.cc:245: UMA_HISTOGRAM_ENUMERATION("PasswordGeneration.EVENTS", On 2012/07/18 05:36:15, Ilya Sherman wrote: > This ...
8 years, 5 months ago (2012-07-18 19:16:46 UTC) #12
Ilya Sherman
This is looking much better, thanks :) +cc Jim for comment on whether it's ok ...
8 years, 5 months ago (2012-07-18 20:48:56 UTC) #13
Elliot Glaysher
gtk code lgtm
8 years, 5 months ago (2012-07-18 20:51:36 UTC) #14
zysxqn
http://codereview.chromium.org/10787023/diff/8003/chrome/browser/ui/password_generation_status.cc File chrome/browser/ui/password_generation_status.cc (right): http://codereview.chromium.org/10787023/diff/8003/chrome/browser/ui/password_generation_status.cc#newcode25 chrome/browser/ui/password_generation_status.cc:25: ACCEPT_AFTER_EDITING, ACTION_ENUM_COUNT); On 2012/07/18 20:48:56, Ilya Sherman wrote: > ...
8 years, 5 months ago (2012-07-18 22:46:16 UTC) #15
Ilya Sherman
LGTM, but please also wait for Jim's feedback regarding logging to a single histogram from ...
8 years, 5 months ago (2012-07-18 23:13:23 UTC) #16
zysxqn
http://codereview.chromium.org/10787023/diff/8003/chrome/browser/ui/password_generation_status.h File chrome/browser/ui/password_generation_status.h (right): http://codereview.chromium.org/10787023/diff/8003/chrome/browser/ui/password_generation_status.h#newcode48 chrome/browser/ui/password_generation_status.h:48: }; On 2012/07/18 23:13:23, Ilya Sherman wrote: > On ...
8 years, 5 months ago (2012-07-18 23:21:28 UTC) #17
jar (doing other things)
As a general rule, if you can get the info in the browser (easily), then ...
8 years, 5 months ago (2012-07-19 00:05:41 UTC) #18
zysxqn
Changed to use a separate histogram for the submitted event -- this one is relevantly ...
8 years, 5 months ago (2012-07-19 18:49:20 UTC) #19
zysxqn
http://codereview.chromium.org/10787023/diff/19004/chrome/browser/ui/gtk/password_generation_bubble_gtk.cc File chrome/browser/ui/gtk/password_generation_bubble_gtk.cc (right): http://codereview.chromium.org/10787023/diff/19004/chrome/browser/ui/gtk/password_generation_bubble_gtk.cc#newcode113 chrome/browser/ui/gtk/password_generation_bubble_gtk.cc:113: BubbleGtk* bubble, bool closed_by_escape) { On 2012/07/19 00:05:41, jar ...
8 years, 5 months ago (2012-07-19 18:49:28 UTC) #20
Ilya Sherman
http://codereview.chromium.org/10787023/diff/17012/chrome/browser/password_manager/password_manager.cc File chrome/browser/password_manager/password_manager.cc (right): http://codereview.chromium.org/10787023/diff/17012/chrome/browser/password_manager/password_manager.cc#newcode244 chrome/browser/password_manager/password_manager.cc:244: UMA_HISTOGRAM_COUNTS("PasswordGeneration.Submitted", 1); Keep in mind that this will have ...
8 years, 5 months ago (2012-07-19 23:29:07 UTC) #21
Ilya Sherman
(also, still lgtm)
8 years, 5 months ago (2012-07-19 23:29:26 UTC) #22
zysxqn
Yes, I think we won't compare it directly with other renderer stats for now. If ...
8 years, 5 months ago (2012-07-20 17:47:26 UTC) #23
Garrett Casto
One small thing. Otherwise lgtm http://codereview.chromium.org/10787023/diff/17012/chrome/renderer/autofill/password_generation_manager.cc File chrome/renderer/autofill/password_generation_manager.cc (right): http://codereview.chromium.org/10787023/diff/17012/chrome/renderer/autofill/password_generation_manager.cc#newcode127 chrome/renderer/autofill/password_generation_manager.cc:127: } Can we have ...
8 years, 5 months ago (2012-07-20 18:00:40 UTC) #24
zysxqn
http://codereview.chromium.org/10787023/diff/17012/chrome/renderer/autofill/password_generation_manager.cc File chrome/renderer/autofill/password_generation_manager.cc (right): http://codereview.chromium.org/10787023/diff/17012/chrome/renderer/autofill/password_generation_manager.cc#newcode127 chrome/renderer/autofill/password_generation_manager.cc:127: } On 2012/07/20 18:00:40, Garrett Casto wrote: > Can ...
8 years, 5 months ago (2012-07-20 18:20:32 UTC) #25
Garrett Casto
http://codereview.chromium.org/10787023/diff/17012/chrome/renderer/autofill/password_generation_manager.cc File chrome/renderer/autofill/password_generation_manager.cc (right): http://codereview.chromium.org/10787023/diff/17012/chrome/renderer/autofill/password_generation_manager.cc#newcode127 chrome/renderer/autofill/password_generation_manager.cc:127: } On 2012/07/20 18:20:32, zysxqn wrote: > On 2012/07/20 ...
8 years, 5 months ago (2012-07-20 18:43:58 UTC) #26
zysxqn
http://codereview.chromium.org/10787023/diff/17012/chrome/renderer/autofill/password_generation_manager.cc File chrome/renderer/autofill/password_generation_manager.cc (right): http://codereview.chromium.org/10787023/diff/17012/chrome/renderer/autofill/password_generation_manager.cc#newcode127 chrome/renderer/autofill/password_generation_manager.cc:127: } On 2012/07/20 18:43:58, Garrett Casto wrote: > On ...
8 years, 5 months ago (2012-07-20 19:03:48 UTC) #27
Garrett Casto
lgtm
8 years, 5 months ago (2012-07-20 19:08:35 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zysxqn@google.com/10787023/15007
8 years, 5 months ago (2012-07-20 19:11:24 UTC) #29
commit-bot: I haz the power
Try job failure for 10787023-15007 (retry) on win_rel for step "compile" (clobber build). It's a ...
8 years, 5 months ago (2012-07-20 19:50:16 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zysxqn@google.com/10787023/7032
8 years, 5 months ago (2012-07-20 20:00:08 UTC) #31
commit-bot: I haz the power
Try job failure for 10787023-7032 (retry) on win_rel for step "compile" (clobber build). It's a ...
8 years, 5 months ago (2012-07-20 21:00:59 UTC) #32
zysxqn
hmm.. It is really weird. Only the windows compiler fails with defining the enum in ...
8 years, 5 months ago (2012-07-20 21:10:45 UTC) #33
zysxqn
It looks like vs2010 doesn't allow enum defined in anonymous namespace ( http://msdn.microsoft.com/en-us/library/a6cskb49(v=vs.110).aspx). So I'm ...
8 years, 5 months ago (2012-07-20 23:48:10 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zysxqn@google.com/10787023/7034
8 years, 5 months ago (2012-07-20 23:53:55 UTC) #35
Ilya Sherman
On 2012/07/20 23:48:10, zysxqn wrote: > It looks like vs2010 doesn't allow enum defined in ...
8 years, 5 months ago (2012-07-21 00:08:44 UTC) #36
zysxqn
yeah, autofill_metrics.cc has an example. So I will try renaming IGNORE. Thanks! On Fri, Jul ...
8 years, 5 months ago (2012-07-21 00:14:31 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zysxqn@google.com/10787023/14017
8 years, 5 months ago (2012-07-21 00:17:19 UTC) #38
commit-bot: I haz the power
8 years, 5 months ago (2012-07-21 01:45:58 UTC) #39
Change committed as 147757

Powered by Google App Engine
This is Rietveld 408576698