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

Issue 371933002: Add UMA for the new generic permisison class (Closed)

Created:
6 years, 5 months ago by Miguel Garcia
Modified:
6 years, 5 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, markusheintz_, asvitkine+watch_chromium.org, Greg Billock, fgorski, tommi (sloooow) - chröme
Project:
chromium
Visibility:
Public.

Description

Add UMA for the new generic permisison class In order to track UMA accurately we only need to track it when there is an actual prompt for permission, not when the permission was saved for the domain. I have re-purposed the PermissionDecided method for this which was essentially doing nothing before. BUG=392145 TBR=fgorski,tommi Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283546

Patch Set 1 #

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 13

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : Rework the UMA based on mpearsons suggestion. Add extra UMA for ignored and dismissed requests #

Total comments: 16

Patch Set 10 : #

Total comments: 9

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -38 lines) Patch
M chrome/browser/content_settings/content_settings_default_provider.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/permission_bubble_request_impl.h View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/content_settings/permission_bubble_request_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/content_settings/permission_context_base.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/content_settings/permission_context_base.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +25 lines, -9 lines 0 comments Download
A chrome/browser/content_settings/permission_context_uma_util.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/content_settings/permission_context_uma_util.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +112 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/permission_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/permission_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/permission_queue_controller.cc View 1 2 3 4 5 6 7 8 4 chunks +14 lines, -6 lines 0 comments Download
M chrome/browser/media/midi_permission_infobar_delegate.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/media/midi_permission_infobar_delegate.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_infobar_delegate.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_infobar_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/actions/actions.xml View 1 2 3 4 5 6 7 2 chunks +11 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 3 chunks +40 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Miguel Garcia
Initial non-owner review
6 years, 5 months ago (2014-07-07 14:30:06 UTC) #1
Michael van Ouwerkerk
lgtm with tiny nits https://codereview.chromium.org/371933002/diff/20001/tools/metrics/actions/actions.xml File tools/metrics/actions/actions.xml (right): https://codereview.chromium.org/371933002/diff/20001/tools/metrics/actions/actions.xml#newcode8255 tools/metrics/actions/actions.xml:8255: Triggers when the default decission ...
6 years, 5 months ago (2014-07-07 14:45:20 UTC) #2
Takashi Toyoshima
Thank you for adding nice UMAs. LGTM! https://codereview.chromium.org/371933002/diff/20001/chrome/browser/content_settings/permission_context_base.cc File chrome/browser/content_settings/permission_context_base.cc (right): https://codereview.chromium.org/371933002/diff/20001/chrome/browser/content_settings/permission_context_base.cc#newcode139 chrome/browser/content_settings/permission_context_base.cc:139: PERMISSION_NUM); This ...
6 years, 5 months ago (2014-07-08 10:46:17 UTC) #3
Miguel Garcia
+bernhard for content_settings owners +mpearson for histograms owners
6 years, 5 months ago (2014-07-08 12:37:44 UTC) #4
Bernhard Bauer
https://codereview.chromium.org/371933002/diff/20001/chrome/browser/content_settings/permission_context_base.cc File chrome/browser/content_settings/permission_context_base.cc (right): https://codereview.chromium.org/371933002/diff/20001/chrome/browser/content_settings/permission_context_base.cc#newcode135 chrome/browser/content_settings/permission_context_base.cc:135: UMA_HISTOGRAM_ENUMERATION(allowed You were going to fix this? https://codereview.chromium.org/371933002/diff/20001/chrome/browser/content_settings/permission_context_base.h File ...
6 years, 5 months ago (2014-07-08 12:54:52 UTC) #5
Miguel Garcia
https://codereview.chromium.org/371933002/diff/20001/chrome/browser/content_settings/permission_context_base.cc File chrome/browser/content_settings/permission_context_base.cc (right): https://codereview.chromium.org/371933002/diff/20001/chrome/browser/content_settings/permission_context_base.cc#newcode135 chrome/browser/content_settings/permission_context_base.cc:135: UMA_HISTOGRAM_ENUMERATION(allowed On 2014/07/08 12:54:51, Bernhard Bauer wrote: > You ...
6 years, 5 months ago (2014-07-08 14:14:20 UTC) #6
Miguel Garcia
+dbeam for browser/ui/webui/options/ OWNERS
6 years, 5 months ago (2014-07-08 14:17:13 UTC) #7
Bernhard Bauer
LGTM (also for WebUI) https://codereview.chromium.org/371933002/diff/40001/chrome/browser/content_settings/permission_context_base.cc File chrome/browser/content_settings/permission_context_base.cc (right): https://codereview.chromium.org/371933002/diff/40001/chrome/browser/content_settings/permission_context_base.cc#newcode26 chrome/browser/content_settings/permission_context_base.cc:26: static PermissionType SettingToPermission(ContentSettingsType permission) { ...
6 years, 5 months ago (2014-07-08 14:51:05 UTC) #8
Miguel Garcia
https://codereview.chromium.org/371933002/diff/40001/chrome/browser/content_settings/permission_context_base.cc File chrome/browser/content_settings/permission_context_base.cc (right): https://codereview.chromium.org/371933002/diff/40001/chrome/browser/content_settings/permission_context_base.cc#newcode26 chrome/browser/content_settings/permission_context_base.cc:26: static PermissionType SettingToPermission(ContentSettingsType permission) { On 2014/07/08 14:51:05, Bernhard ...
6 years, 5 months ago (2014-07-08 15:37:44 UTC) #9
Mark P
Please revise the changelist description now that it doesn't depend on any unsubmitted changes. --mark
6 years, 5 months ago (2014-07-08 20:22:15 UTC) #10
Mark P
https://codereview.chromium.org/371933002/diff/60001/chrome/browser/content_settings/permission_context_base.h File chrome/browser/content_settings/permission_context_base.h (right): https://codereview.chromium.org/371933002/diff/60001/chrome/browser/content_settings/permission_context_base.h#newcode26 chrome/browser/content_settings/permission_context_base.h:26: // add new pemissions. Please explicitly use = 0, ...
6 years, 5 months ago (2014-07-08 20:49:03 UTC) #11
Miguel Garcia
Thanks for the review Mark! I think I addressed all your comments, PTAL https://codereview.chromium.org/371933002/diff/60001/chrome/browser/content_settings/permission_context_base.h File ...
6 years, 5 months ago (2014-07-09 11:17:19 UTC) #12
Mark P
Now that you have clearer histogram descriptions, I can understand what these histograms are doing. ...
6 years, 5 months ago (2014-07-09 23:18:52 UTC) #13
Miguel Garcia
I don't think your suggestion conflicts with this one though individual permission owners can (and ...
6 years, 5 months ago (2014-07-10 09:03:12 UTC) #14
Mark P
On Thu, Jul 10, 2014 at 2:03 AM, <miguelg@chromium.org> wrote: > I don't think your ...
6 years, 5 months ago (2014-07-10 16:33:32 UTC) #15
Miguel Garcia
bauerb, mpearson PTAL I chatted offline with Mark and learnt a bit more about UMA ...
6 years, 5 months ago (2014-07-14 15:04:45 UTC) #16
Bernhard Bauer
https://codereview.chromium.org/371933002/diff/160001/chrome/browser/content_settings/permission_bubble_request_impl.cc File chrome/browser/content_settings/permission_bubble_request_impl.cc (right): https://codereview.chromium.org/371933002/diff/160001/chrome/browser/content_settings/permission_bubble_request_impl.cc#newcode34 chrome/browser/content_settings/permission_bubble_request_impl.cc:34: PermissionContextUmaUtil::PermissionIgnored(type_); Nit: Braces are unnecessary. https://codereview.chromium.org/371933002/diff/160001/chrome/browser/content_settings/permission_bubble_request_impl.h File chrome/browser/content_settings/permission_bubble_request_impl.h (right): ...
6 years, 5 months ago (2014-07-14 15:22:15 UTC) #17
Miguel Garcia
Michael complained that the histogram that compared requested permissions was in fact valuable which I ...
6 years, 5 months ago (2014-07-14 16:57:50 UTC) #18
Bernhard Bauer
6 years, 5 months ago (2014-07-14 17:00:56 UTC) #19
Bernhard Bauer
lgtm
6 years, 5 months ago (2014-07-14 17:01:01 UTC) #20
Miguel Garcia
Friendly ping for the remaining owners On Jul 14, 2014 6:01 PM, <bauerb@chromium.org> wrote: > ...
6 years, 5 months ago (2014-07-15 19:27:57 UTC) #21
Mark P
histograms.xml lgtm Some more nits on the other parts of the code I saw. I ...
6 years, 5 months ago (2014-07-15 20:17:41 UTC) #22
Miguel Garcia
https://codereview.chromium.org/371933002/diff/180001/chrome/browser/content_settings/permission_context_uma_util.cc File chrome/browser/content_settings/permission_context_uma_util.cc (right): https://codereview.chromium.org/371933002/diff/180001/chrome/browser/content_settings/permission_context_uma_util.cc#newcode11 chrome/browser/content_settings/permission_context_uma_util.cc:11: // add new permission actions. Never delete or reorder ...
6 years, 5 months ago (2014-07-16 11:15:27 UTC) #23
Miguel Garcia
The CQ bit was checked by miguelg@chromium.org
6 years, 5 months ago (2014-07-16 11:16:51 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miguelg@chromium.org/371933002/200001
6 years, 5 months ago (2014-07-16 11:19:39 UTC) #25
commit-bot: I haz the power
6 years, 5 months ago (2014-07-16 22:23:22 UTC) #26
Message was sent while issue was closed.
Change committed as 283546

Powered by Google App Engine
This is Rietveld 408576698