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

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

Issue 55063002: Prefer opening PDF downloads in the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Destroy PluginService once we are done with our plugin tests. Created 7 years, 1 month 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 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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_stats.h ('k') | chrome/browser/download/download_target_determiner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698