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

Side by Side Diff: chrome/browser/ui/website_settings/permission_ui_uma_util.cc

Issue 1977693003: Add metrics for permission prompt acceptance / denial (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/website_settings/permission_bubble_manager.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
benwells 2016/05/13 05:58:22 I accidentally committed this dud file :|
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/website_settings/permission_ui_uma_util.h"
6
7 #include "base/metrics/histogram_macros.h"
8 #include "chrome/browser/ui/website_settings/permission_bubble_request.h"
9
10 void PermissionUiUmaUtil::PermissionPromptShown(
11 const std::vector<PermissionBubbleRequest*>& requests) {
12 PermissionBubbleType permission_prompt_type = PermissionBubbleType::MULTIPLE;
13 if (requests.size() == 1)
14 permission_prompt_type = requests[0]->GetPermissionBubbleType();
15 UMA_HISTOGRAM_ENUMERATION(
16 "Permissions.Prompt.Shown",
17 static_cast<base::HistogramBase::Sample>(permission_prompt_type),
18 static_cast<base::HistogramBase::Sample>(PermissionBubbleType::NUM));
19 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/website_settings/permission_bubble_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698