| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 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 } |
| OLD | NEW |