| 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 // Download utility implementation | 5 // Download utility implementation |
| 6 | 6 |
| 7 #include "chrome/browser/download/download_util.h" | 7 #include "chrome/browser/download/download_util.h" |
| 8 | 8 |
| 9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
| 10 #include <shobjidl.h> | 10 #include <shobjidl.h> |
| (...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 size, | 623 size, |
| 624 kMaxShelfSize); | 624 kMaxShelfSize); |
| 625 UMA_HISTOGRAM_ENUMERATION("Download.ShelfInProgressSizeOnUserClose", | 625 UMA_HISTOGRAM_ENUMERATION("Download.ShelfInProgressSizeOnUserClose", |
| 626 in_progress, | 626 in_progress, |
| 627 kMaxShelfSize); | 627 kMaxShelfSize); |
| 628 } | 628 } |
| 629 } | 629 } |
| 630 | 630 |
| 631 void RecordDownloadCount(ChromeDownloadCountTypes type) { | 631 void RecordDownloadCount(ChromeDownloadCountTypes type) { |
| 632 UMA_HISTOGRAM_ENUMERATION( | 632 UMA_HISTOGRAM_ENUMERATION( |
| 633 "Download.CountsChrome", type, DOWNLOAD_COUNT_TYPES_LAST_ENTRY); | 633 "Download.CountsChrome", type, CHROME_DOWNLOAD_COUNT_TYPES_LAST_ENTRY); |
| 634 } |
| 635 |
| 636 void RecordDownloadSource(ChromeDownloadSource source) { |
| 637 UMA_HISTOGRAM_ENUMERATION( |
| 638 "Download.SourcesChrome", source, CHROME_DOWNLOAD_SOURCE_LAST_ENTRY); |
| 634 } | 639 } |
| 635 | 640 |
| 636 } // namespace download_util | 641 } // namespace download_util |
| OLD | NEW |