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

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

Issue 9316116: Isolate initiation counts for downloads to their own histograms and improve (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged to TOT. Created 8 years, 10 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 | Annotate | Revision Log
OLDNEW
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 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, DOWNLOAD_COUNT_TYPES_LAST_ENTRY);
634 } 634 }
635 635
636 void RecordDownloadSource(ChromeDownloadInitiationSources source) {
637 UMA_HISTOGRAM_ENUMERATION(
638 "Download.SourcesChrome", source, DOWNLOAD_INITIATION_SOURCES_LAST_ENTRY);
639 }
640
636 } // namespace download_util 641 } // namespace download_util
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698