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

Issue 16832003: Add UMA metrics to measure the effectiveness of views fuzzing (Closed)

Created:
7 years, 6 months ago by tdanderson
Modified:
7 years, 5 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, tfarina, ben+watch_chromium.org, SteveT, Rick Byers
Visibility:
Public.

Description

Add UMA metrics to measure the effectiveness of views fuzzing Add new buckets to the Ash.GestureTarget histogram which will be useful in measuring the effectiveness of views fuzzing when it is implemented. The idea is to count taps made on the different element types located on/near the tab strip. A description of the new types added to GestureActionType in touch_uma.cc: GESTURE_TABSWITCH_TAP: A tap on a currently unselected tab (i.e., the tap was responsible for selecting the tab). GESTURE_TABNOSWITCH_TAP: A tap on a currently selected tab (i.e, the tap had no visible effect). GESTURE_TABCLOSE_TAP: A tap on a tab's close button. GESTURE_NEWTAB_TAP: A tap on the new tab button. GESTURE_FRAMEMAXIMIZE_TAP: A tap on the frame maximize button. GESTURE_FRAMEVIEW_TAP: A tap on the space to the right of the tabstrip, left of the tabstrip, or in between tabs. Such a tap has no visible effect. GESTURE_ROOTVIEWTOP_TAP: A tap on the top edge of a browser window. Such a tap has no visible effect. GESTURE_MAXIMIZE_DOUBLETAP: A double-tap on the browser window resulting in a maximize or restore action. BUG=248230 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209263

Patch Set 1 #

Total comments: 4

Patch Set 2 : Tracking for tab taps moved into tab_strip #

Total comments: 16

Patch Set 3 : TouchUMA turned into a singleton #

Total comments: 12

Patch Set 4 : Fix linking errors #

Total comments: 2

Patch Set 5 : Sardul's comments addressed in patch sets 2-4 #

Total comments: 13

Patch Set 6 : Test written but broken #

Total comments: 21

Patch Set 7 : Comments addressed #

Total comments: 12

Patch Set 8 : ifdefs removed #

Total comments: 5

Patch Set 9 : enums changed #

Total comments: 2

Patch Set 10 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -119 lines) Patch
M ash/touch/touch_uma.h View 1 2 3 4 5 6 7 8 3 chunks +40 lines, -5 lines 0 comments Download
M ash/touch/touch_uma.cc View 1 2 3 4 5 6 7 7 chunks +87 lines, -99 lines 0 comments Download
M ash/wm/system_gesture_event_filter.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M ash/wm/system_gesture_event_filter.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M ash/wm/workspace/frame_maximize_button.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -1 line 0 comments Download
M ash/wm/workspace/workspace_event_handler.cc View 1 2 3 4 5 6 7 2 chunks +16 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_root_view.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_root_view.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.h View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 2 3 4 5 6 7 4 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 3 4 5 6 7 3 chunks +14 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/touch_uma/touch_uma.h View 1 2 3 4 5 6 7 8 1 chunk +26 lines, -0 lines 0 comments Download
A + chrome/browser/ui/views/touch_uma/touch_uma.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -4 lines 0 comments Download
A chrome/browser/ui/views/touch_uma/touch_uma_ash.cc View 1 2 3 4 5 6 7 8 9 1 chunk +30 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
tdanderson
@sadrul, would you mind having a first look over this WIP patch and my comments? ...
7 years, 6 months ago (2013-06-12 20:04:23 UTC) #1
tdanderson
@sadrul, Patch Set 2 fixes the illegal include issue. https://codereview.chromium.org/16832003/diff/1/ash/touch/touch_uma.cc File ash/touch/touch_uma.cc (right): https://codereview.chromium.org/16832003/diff/1/ash/touch/touch_uma.cc#newcode10 ash/touch/touch_uma.cc:10: ...
7 years, 6 months ago (2013-06-13 22:46:25 UTC) #2
sadrul
https://codereview.chromium.org/16832003/diff/4001/ash/touch/touch_uma.cc File ash/touch/touch_uma.cc (right): https://codereview.chromium.org/16832003/diff/4001/ash/touch/touch_uma.cc#newcode417 ash/touch/touch_uma.cc:417: const char kRootView[] = "browser/ui/views/frame/BrowserRootView"; Rename this to BrowserRootView ...
7 years, 6 months ago (2013-06-14 00:20:25 UTC) #3
tdanderson
@sadrul, can you please have a look at my latest patch set and questions when ...
7 years, 6 months ago (2013-06-14 19:56:52 UTC) #4
sadrul
Responded to comments in patchsets 2, 3, 4. https://codereview.chromium.org/16832003/diff/4001/ash/touch/touch_uma.cc File ash/touch/touch_uma.cc (right): https://codereview.chromium.org/16832003/diff/4001/ash/touch/touch_uma.cc#newcode428 ash/touch/touch_uma.cc:428: return ...
7 years, 6 months ago (2013-06-16 20:56:17 UTC) #5
tdanderson
@sadrul, thanks for the feedback. I believe I have addressed all of your comments in ...
7 years, 6 months ago (2013-06-17 21:40:56 UTC) #6
sadrul
> Also, what sort of testing do you expect for this CL? I guess the ...
7 years, 6 months ago (2013-06-18 04:02:40 UTC) #7
tdanderson
@sky, can you please have a look at this for OWNERS review? I am in ...
7 years, 6 months ago (2013-06-20 18:39:44 UTC) #8
sky
What files do you need me to review?
7 years, 6 months ago (2013-06-20 20:12:51 UTC) #9
tdanderson
On 2013/06/20 20:12:51, sky wrote: > What files do you need me to review? I ...
7 years, 6 months ago (2013-06-20 20:31:00 UTC) #10
sky
Meta question. It's rather unusual to add metrics before we go with an implementation. Is ...
7 years, 6 months ago (2013-06-20 21:33:32 UTC) #11
tdanderson
On 2013/06/20 21:33:32, sky wrote: > Meta question. It's rather unusual to add metrics before ...
7 years, 6 months ago (2013-06-20 22:07:54 UTC) #12
sky
https://codereview.chromium.org/16832003/diff/50001/ash/touch/touch_uma.cc File ash/touch/touch_uma.cc (right): https://codereview.chromium.org/16832003/diff/50001/ash/touch/touch_uma.cc#newcode413 ash/touch/touch_uma.cc:413: const char kTabClose[] = "TabCloseButton"; UGH! How did we ...
7 years, 6 months ago (2013-06-21 16:21:38 UTC) #13
tdanderson
@sky, I have uploaded patch set 7 to address your comments. https://codereview.chromium.org/16832003/diff/50001/ash/touch/touch_uma.cc File ash/touch/touch_uma.cc (right): ...
7 years, 5 months ago (2013-06-26 22:30:39 UTC) #14
sky
I don't like all the ifdefs this introduces. Instead could you have a file in ...
7 years, 5 months ago (2013-06-26 23:42:55 UTC) #15
tdanderson
@sky, is this what you had in mind? https://codereview.chromium.org/16832003/diff/62001/ash/touch/touch_uma.cc File ash/touch/touch_uma.cc (right): https://codereview.chromium.org/16832003/diff/62001/ash/touch/touch_uma.cc#newcode176 ash/touch/touch_uma.cc:176: TouchUMA::TouchUMA() ...
7 years, 5 months ago (2013-06-27 22:39:33 UTC) #16
sky
Yes, this is what I had in mind. Thanks! https://codereview.chromium.org/16832003/diff/74001/ash/touch/touch_uma.h File ash/touch/touch_uma.h (right): https://codereview.chromium.org/16832003/diff/74001/ash/touch/touch_uma.h#newcode45 ash/touch/touch_uma.h:45: ...
7 years, 5 months ago (2013-06-27 23:09:35 UTC) #17
tdanderson
@sky, the enums have been changed according to your suggestion. @sadrul, does this patch lgty ...
7 years, 5 months ago (2013-06-28 18:45:16 UTC) #18
sky
LGTM https://codereview.chromium.org/16832003/diff/85001/chrome/browser/ui/views/touch_uma/touch_uma_ash.cc File chrome/browser/ui/views/touch_uma/touch_uma_ash.cc (right): https://codereview.chromium.org/16832003/diff/85001/chrome/browser/ui/views/touch_uma/touch_uma_ash.cc#newcode27 chrome/browser/ui/views/touch_uma/touch_uma_ash.cc:27: default: You should be able to remove default ...
7 years, 5 months ago (2013-06-28 19:39:38 UTC) #19
tdanderson
https://codereview.chromium.org/16832003/diff/85001/chrome/browser/ui/views/touch_uma/touch_uma_ash.cc File chrome/browser/ui/views/touch_uma/touch_uma_ash.cc (right): https://codereview.chromium.org/16832003/diff/85001/chrome/browser/ui/views/touch_uma/touch_uma_ash.cc#newcode27 chrome/browser/ui/views/touch_uma/touch_uma_ash.cc:27: default: On 2013/06/28 19:39:38, sky wrote: > You should ...
7 years, 5 months ago (2013-06-28 19:49:55 UTC) #20
sadrul
LGTM
7 years, 5 months ago (2013-06-28 20:20:53 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/16832003/85002
7 years, 5 months ago (2013-06-28 20:25:29 UTC) #22
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 5 months ago (2013-06-28 20:39:06 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/16832003/85002
7 years, 5 months ago (2013-06-28 21:22:44 UTC) #24
commit-bot: I haz the power
7 years, 5 months ago (2013-06-29 01:44:37 UTC) #25
Message was sent while issue was closed.
Change committed as 209263

Powered by Google App Engine
This is Rietveld 408576698