OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_stats.h" | 5 #include "chrome/browser/download/download_stats.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 | 8 |
9 void RecordDownloadShelfClose(int size, int in_progress, bool autoclose) { | 9 void RecordDownloadShelfClose(int size, int in_progress, bool autoclose) { |
10 static const int kMaxShelfSize = 16; | 10 static const int kMaxShelfSize = 16; |
(...skipping 19 matching lines...) Expand all Loading... |
30 UMA_HISTOGRAM_ENUMERATION( | 30 UMA_HISTOGRAM_ENUMERATION( |
31 "Download.SourcesChrome", source, CHROME_DOWNLOAD_SOURCE_LAST_ENTRY); | 31 "Download.SourcesChrome", source, CHROME_DOWNLOAD_SOURCE_LAST_ENTRY); |
32 } | 32 } |
33 | 33 |
34 void RecordOpenedDangerousConfirmDialog( | 34 void RecordOpenedDangerousConfirmDialog( |
35 content::DownloadDangerType danger_type) { | 35 content::DownloadDangerType danger_type) { |
36 UMA_HISTOGRAM_ENUMERATION("Download.ShowDangerousDownloadConfirmationPrompt", | 36 UMA_HISTOGRAM_ENUMERATION("Download.ShowDangerousDownloadConfirmationPrompt", |
37 danger_type, | 37 danger_type, |
38 content::DOWNLOAD_DANGER_TYPE_MAX); | 38 content::DOWNLOAD_DANGER_TYPE_MAX); |
39 } | 39 } |
| 40 |
| 41 void RecordDownloadOpenMethod(ChromeDownloadOpenMethod open_method) { |
| 42 UMA_HISTOGRAM_ENUMERATION("Download.OpenMethod", |
| 43 open_method, |
| 44 DOWNLOAD_OPEN_METHOD_LAST_ENTRY); |
| 45 } |
OLD | NEW |