| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/download/download_danger_prompt.h" | 5 #include "chrome/browser/download/download_danger_prompt.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/metrics/sparse_histogram.h" | 8 #include "base/metrics/histogram_macros.h" |
| 9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| 11 #include "chrome/browser/safe_browsing/download_protection_service.h" | 11 #include "chrome/browser/safe_browsing/download_protection_service.h" |
| 12 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 12 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
| 13 #include "chrome/common/safe_browsing/file_type_policies.h" | 13 #include "chrome/common/safe_browsing/file_type_policies.h" |
| 14 #include "content/public/browser/download_danger_type.h" | 14 #include "content/public/browser/download_danger_type.h" |
| 15 #include "content/public/browser/download_item.h" | 15 #include "content/public/browser/download_item.h" |
| 16 | 16 |
| 17 using safe_browsing::ClientDownloadResponse; | 17 using safe_browsing::ClientDownloadResponse; |
| 18 using safe_browsing::ClientSafeBrowsingReportRequest; | 18 using safe_browsing::ClientSafeBrowsingReportRequest; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 base::StringPrintf("%s.%s.Shown", kDownloadDangerPromptPrefix, | 100 base::StringPrintf("%s.%s.Shown", kDownloadDangerPromptPrefix, |
| 101 GetDangerTypeString(danger_type)), | 101 GetDangerTypeString(danger_type)), |
| 102 file_type_uma_value); | 102 file_type_uma_value); |
| 103 if (did_proceed) { | 103 if (did_proceed) { |
| 104 UMA_HISTOGRAM_SPARSE_SLOWLY( | 104 UMA_HISTOGRAM_SPARSE_SLOWLY( |
| 105 base::StringPrintf("%s.%s.Proceed", kDownloadDangerPromptPrefix, | 105 base::StringPrintf("%s.%s.Proceed", kDownloadDangerPromptPrefix, |
| 106 GetDangerTypeString(danger_type)), | 106 GetDangerTypeString(danger_type)), |
| 107 file_type_uma_value); | 107 file_type_uma_value); |
| 108 } | 108 } |
| 109 } | 109 } |
| OLD | NEW |