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

Issue 288493008: UMA Metrics for the user menu, including vasquette-detection (Closed)

Created:
6 years, 7 months ago by Mike Lerman
Modified:
6 years, 7 months ago
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

UMA Metrics for the new avatar menu, including vasquette-detection and Add Account, remove Account, profile switch and locking. For Googlers, a design doc: https://docs.google.com/a/google.com/document/d/1ybiN1r2xAlMj0PBABH63PJIyVWhsM409xPpZI4zlmck/edit BUG=357693 TEST=Turn on new-profile-management and optionally fast-user-switcher. Perform the actions listed above and verify results in chrome://histograms Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272999

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move ProfileChooserView variable init to initialize list #

Total comments: 2

Patch Set 3 : Nit - make a member variable const #

Total comments: 11

Patch Set 4 : Rebase #

Patch Set 5 : Change histogram bucket order for maintainability. #

Total comments: 6

Patch Set 6 : Nits #

Patch Set 7 : Rebase #

Patch Set 8 : Track user-source in the histogram suffix #

Total comments: 4

Patch Set 9 : Histograms.xml touch ups #

Patch Set 10 : Split user-menu data based on GAIA service type #

Total comments: 14

Patch Set 11 : Rebase #

Patch Set 12 : Nits and change where account removal is tracked #

Patch Set 13 : Clear service type after profilechooser action. Rename default histogram. #

Total comments: 6

Patch Set 14 : Rename enum #

Patch Set 15 : Removing forward declarations of enums. #

Total comments: 4

Patch Set 16 : Nits #

Total comments: 4

Patch Set 17 : Comment nits #

Patch Set 18 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -29 lines) Patch
M chrome/browser/extensions/api/principals_private/principals_private_api.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_metrics.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_metrics.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +35 lines, -0 lines 0 comments Download
M chrome/browser/signin/signin_global_error.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/signin/signin_header_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/signin/signin_header_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +26 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_window.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/profiles/avatar_label.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +18 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/test/base/test_browser_window.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 3 chunks +39 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
Mike Lerman
Reviewers, PTAL. noms - c/b/profiles rogerta - c/b/signin sky - c/b/ui/* guohui - overall functionality ...
6 years, 7 months ago (2014-05-13 15:53:27 UTC) #1
Mike Lerman
+asvitkine - tools/metrics/histograms Thanks
6 years, 7 months ago (2014-05-13 16:07:00 UTC) #2
sky
https://codereview.chromium.org/288493008/diff/20001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/288493008/diff/20001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode426 chrome/browser/ui/views/profiles/profile_chooser_view.cc:426: view_mode = BUBBLE_VIEW_MODE_ACCOUNT_MANAGEMENT; Can you set both view_mode_ and ...
6 years, 7 months ago (2014-05-13 16:34:36 UTC) #3
Mike Lerman
Thanks sky! https://codereview.chromium.org/288493008/diff/20001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/288493008/diff/20001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode426 chrome/browser/ui/views/profiles/profile_chooser_view.cc:426: view_mode = BUBBLE_VIEW_MODE_ACCOUNT_MANAGEMENT; On 2014/05/13 16:34:37, sky ...
6 years, 7 months ago (2014-05-13 16:57:55 UTC) #4
sky
LGTM https://codereview.chromium.org/288493008/diff/40001/chrome/browser/ui/views/profiles/profile_chooser_view.h File chrome/browser/ui/views/profiles/profile_chooser_view.h (right): https://codereview.chromium.org/288493008/diff/40001/chrome/browser/ui/views/profiles/profile_chooser_view.h#newcode259 chrome/browser/ui/views/profiles/profile_chooser_view.h:259: bool opened_from_header_; nit: make this const (and likely ...
6 years, 7 months ago (2014-05-13 17:35:42 UTC) #5
Mike Lerman
https://codereview.chromium.org/288493008/diff/40001/chrome/browser/ui/views/profiles/profile_chooser_view.h File chrome/browser/ui/views/profiles/profile_chooser_view.h (right): https://codereview.chromium.org/288493008/diff/40001/chrome/browser/ui/views/profiles/profile_chooser_view.h#newcode259 chrome/browser/ui/views/profiles/profile_chooser_view.h:259: bool opened_from_header_; On 2014/05/13 17:35:42, sky wrote: > nit: ...
6 years, 7 months ago (2014-05-13 17:52:42 UTC) #6
Roger Tawa OOO till Jul 10th
lgtm https://codereview.chromium.org/288493008/diff/60001/chrome/browser/ui/browser_window.h File chrome/browser/ui/browser_window.h (right): https://codereview.chromium.org/288493008/diff/60001/chrome/browser/ui/browser_window.h#newcode371 chrome/browser/ui/browser_window.h:371: AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT_FROM_HEADER Nit: lets call this FROM_GAIA instead of ...
6 years, 7 months ago (2014-05-14 14:08:43 UTC) #7
Alexei Svitkine (slow)
https://codereview.chromium.org/288493008/diff/60001/chrome/browser/profiles/profile_metrics.cc File chrome/browser/profiles/profile_metrics.cc (right): https://codereview.chromium.org/288493008/diff/60001/chrome/browser/profiles/profile_metrics.cc#newcode307 chrome/browser/profiles/profile_metrics.cc:307: metric + FIRST_VASQUETTE_SIGNOUT_ENUM + 1); Instead of doing this ...
6 years, 7 months ago (2014-05-14 14:15:21 UTC) #8
Mike Lerman
https://codereview.chromium.org/288493008/diff/60001/chrome/browser/profiles/profile_metrics.cc File chrome/browser/profiles/profile_metrics.cc (right): https://codereview.chromium.org/288493008/diff/60001/chrome/browser/profiles/profile_metrics.cc#newcode307 chrome/browser/profiles/profile_metrics.cc:307: metric + FIRST_VASQUETTE_SIGNOUT_ENUM + 1); On 2014/05/14 14:15:22, Alexei ...
6 years, 7 months ago (2014-05-14 19:46:15 UTC) #9
Alexei Svitkine (slow)
https://codereview.chromium.org/288493008/diff/60001/chrome/browser/profiles/profile_metrics.cc File chrome/browser/profiles/profile_metrics.cc (right): https://codereview.chromium.org/288493008/diff/60001/chrome/browser/profiles/profile_metrics.cc#newcode307 chrome/browser/profiles/profile_metrics.cc:307: metric + FIRST_VASQUETTE_SIGNOUT_ENUM + 1); On 2014/05/14 19:46:15, Mike ...
6 years, 7 months ago (2014-05-14 19:55:04 UTC) #10
Alexei Svitkine (slow)
lgtm % nits https://codereview.chromium.org/288493008/diff/90001/chrome/browser/profiles/profile_metrics.cc File chrome/browser/profiles/profile_metrics.cc (right): https://codereview.chromium.org/288493008/diff/90001/chrome/browser/profiles/profile_metrics.cc#newcode302 chrome/browser/profiles/profile_metrics.cc:302: DCHECK(metric % 2 == 0); Nit: ...
6 years, 7 months ago (2014-05-14 20:04:17 UTC) #11
Mike Lerman
https://codereview.chromium.org/288493008/diff/90001/chrome/browser/profiles/profile_metrics.cc File chrome/browser/profiles/profile_metrics.cc (right): https://codereview.chromium.org/288493008/diff/90001/chrome/browser/profiles/profile_metrics.cc#newcode302 chrome/browser/profiles/profile_metrics.cc:302: DCHECK(metric % 2 == 0); On 2014/05/14 20:04:17, Alexei ...
6 years, 7 months ago (2014-05-14 20:09:16 UTC) #12
guohui
in high level, i think it is better to have two separate Enums, one for ...
6 years, 7 months ago (2014-05-15 21:46:15 UTC) #13
noms (inactive)
profiles lgtm
6 years, 7 months ago (2014-05-16 12:52:50 UTC) #14
Mike Lerman
On 2014/05/16 12:52:50, Monica Dinculescu wrote: > profiles lgtm Hui, I've split the histograms in ...
6 years, 7 months ago (2014-05-16 14:36:14 UTC) #15
Alexei Svitkine (slow)
LGTM % comment https://codereview.chromium.org/288493008/diff/150001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/288493008/diff/150001/tools/metrics/histograms/histograms.xml#newcode40594 tools/metrics/histograms/histograms.xml:40594: + <summary>User opened the user menu, ...
6 years, 7 months ago (2014-05-16 14:40:48 UTC) #16
Alexei Svitkine (slow)
https://codereview.chromium.org/288493008/diff/150001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/288493008/diff/150001/tools/metrics/histograms/histograms.xml#newcode46106 tools/metrics/histograms/histograms.xml:46106: +<histogram_suffixes name="Profile.DesktopSignout"> Sorry, one more thing - you need ...
6 years, 7 months ago (2014-05-16 17:04:18 UTC) #17
Mike Lerman
Hui, Can you review this change? I've accounted for the GAIA service types. Once you've ...
6 years, 7 months ago (2014-05-22 13:58:33 UTC) #18
guohui
https://codereview.chromium.org/288493008/diff/180001/chrome/browser/profiles/profile_metrics.h File chrome/browser/profiles/profile_metrics.h (right): https://codereview.chromium.org/288493008/diff/180001/chrome/browser/profiles/profile_metrics.h#newcode111 chrome/browser/profiles/profile_metrics.h:111: // User opened the user menu, and started removing ...
6 years, 7 months ago (2014-05-22 20:20:49 UTC) #19
Mike Lerman
https://codereview.chromium.org/288493008/diff/180001/chrome/browser/profiles/profile_metrics.h File chrome/browser/profiles/profile_metrics.h (right): https://codereview.chromium.org/288493008/diff/180001/chrome/browser/profiles/profile_metrics.h#newcode111 chrome/browser/profiles/profile_metrics.h:111: // User opened the user menu, and started removing ...
6 years, 7 months ago (2014-05-23 17:15:36 UTC) #20
Mike Lerman
Hui, The service type is now cleared in the profile_chooser_view after each action.
6 years, 7 months ago (2014-05-23 19:22:11 UTC) #21
guohui
lgtm, thanks!
6 years, 7 months ago (2014-05-23 19:28:45 UTC) #22
Mike Lerman
Alexei, I redid the way the structure of the histograms. Could you take a second ...
6 years, 7 months ago (2014-05-23 19:31:08 UTC) #23
Mike Lerman
Scott, There have been a lot of changes in the /views code (and all over) ...
6 years, 7 months ago (2014-05-23 19:33:20 UTC) #24
sky
https://codereview.chromium.org/288493008/diff/260001/chrome/browser/signin/signin_header_helper.h File chrome/browser/signin/signin_header_helper.h (right): https://codereview.chromium.org/288493008/diff/260001/chrome/browser/signin/signin_header_helper.h#newcode33 chrome/browser/signin/signin_header_helper.h:33: enum GAIA_SERVICE_TYPE { This should be GaiaServiceType (or maybe ...
6 years, 7 months ago (2014-05-23 19:55:21 UTC) #25
Mike Lerman
https://codereview.chromium.org/288493008/diff/260001/chrome/browser/signin/signin_header_helper.h File chrome/browser/signin/signin_header_helper.h (right): https://codereview.chromium.org/288493008/diff/260001/chrome/browser/signin/signin_header_helper.h#newcode33 chrome/browser/signin/signin_header_helper.h:33: enum GAIA_SERVICE_TYPE { On 2014/05/23 19:55:22, sky wrote: > ...
6 years, 7 months ago (2014-05-23 20:13:03 UTC) #26
Mike Lerman
On 2014/05/23 20:13:03, Mike Lerman wrote: > https://codereview.chromium.org/288493008/diff/260001/chrome/browser/ui/views/frame/browser_view.h > File chrome/browser/ui/views/frame/browser_view.h (right): > > https://codereview.chromium.org/288493008/diff/260001/chrome/browser/ui/views/frame/browser_view.h#newcode79 ...
6 years, 7 months ago (2014-05-23 20:21:28 UTC) #27
sky
LGTM https://codereview.chromium.org/288493008/diff/300001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/288493008/diff/300001/chrome/browser/ui/views/frame/browser_view.cc#newcode2387 chrome/browser/ui/views/frame/browser_view.cc:2387: void BrowserView::ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode, nit: wrap mode to the ...
6 years, 7 months ago (2014-05-23 20:41:41 UTC) #28
Mike Lerman
Thanks Scott. Alexei, can you take a look please? Thanks! https://codereview.chromium.org/288493008/diff/300001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/288493008/diff/300001/chrome/browser/ui/views/frame/browser_view.cc#newcode2387 ...
6 years, 7 months ago (2014-05-26 12:55:24 UTC) #29
Alexei Svitkine (slow)
LGTM % comments https://codereview.chromium.org/288493008/diff/320001/chrome/browser/profiles/profile_metrics.cc File chrome/browser/profiles/profile_metrics.cc (right): https://codereview.chromium.org/288493008/diff/320001/chrome/browser/profiles/profile_metrics.cc#newcode301 chrome/browser/profiles/profile_metrics.cc:301: switch (gaia_service) { Nit: Maybe add ...
6 years, 7 months ago (2014-05-26 17:59:39 UTC) #30
Mike Lerman
Thanks Alexei, and all reviewers! https://codereview.chromium.org/288493008/diff/320001/chrome/browser/profiles/profile_metrics.cc File chrome/browser/profiles/profile_metrics.cc (right): https://codereview.chromium.org/288493008/diff/320001/chrome/browser/profiles/profile_metrics.cc#newcode301 chrome/browser/profiles/profile_metrics.cc:301: switch (gaia_service) { On ...
6 years, 7 months ago (2014-05-27 13:24:46 UTC) #31
Mike Lerman
The CQ bit was checked by mlerman@chromium.org
6 years, 7 months ago (2014-05-27 16:51:12 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/288493008/320002
6 years, 7 months ago (2014-05-27 16:52:08 UTC) #33
commit-bot: I haz the power
6 years, 7 months ago (2014-05-27 18:13:33 UTC) #34
Message was sent while issue was closed.
Change committed as 272999

Powered by Google App Engine
This is Rietveld 408576698