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

Side by Side Diff: chrome/browser/download/download_stats.cc

Issue 2299993004: Migrate chrome/browser files to histogram_macros.h includes. (Closed)
Patch Set: Created 4 years, 3 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
OLDNEW
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_macros.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;
11 if (autoclose) { 11 if (autoclose) {
12 UMA_HISTOGRAM_ENUMERATION( 12 UMA_HISTOGRAM_ENUMERATION(
13 "Download.ShelfSizeOnAutoClose", size, kMaxShelfSize); 13 "Download.ShelfSizeOnAutoClose", size, kMaxShelfSize);
14 UMA_HISTOGRAM_ENUMERATION( 14 UMA_HISTOGRAM_ENUMERATION(
15 "Download.ShelfInProgressSizeOnAutoClose", in_progress, kMaxShelfSize); 15 "Download.ShelfInProgressSizeOnAutoClose", in_progress, kMaxShelfSize);
16 } else { 16 } else {
17 UMA_HISTOGRAM_ENUMERATION( 17 UMA_HISTOGRAM_ENUMERATION(
(...skipping 25 matching lines...) Expand all
43 UMA_HISTOGRAM_ENUMERATION("Download.ShowDangerousDownloadConfirmationPrompt", 43 UMA_HISTOGRAM_ENUMERATION("Download.ShowDangerousDownloadConfirmationPrompt",
44 danger_type, 44 danger_type,
45 content::DOWNLOAD_DANGER_TYPE_MAX); 45 content::DOWNLOAD_DANGER_TYPE_MAX);
46 } 46 }
47 47
48 void RecordDownloadOpenMethod(ChromeDownloadOpenMethod open_method) { 48 void RecordDownloadOpenMethod(ChromeDownloadOpenMethod open_method) {
49 UMA_HISTOGRAM_ENUMERATION("Download.OpenMethod", 49 UMA_HISTOGRAM_ENUMERATION("Download.OpenMethod",
50 open_method, 50 open_method,
51 DOWNLOAD_OPEN_METHOD_LAST_ENTRY); 51 DOWNLOAD_OPEN_METHOD_LAST_ENTRY);
52 } 52 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_history.cc ('k') | chrome/browser/download/save_package_file_picker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698