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

Unified Diff: chrome/browser/ui/views/download/download_feedback_dialog_view.cc

Issue 163433012: Add a histogram "Download.FeedbackDialogEnabled" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/download/download_feedback_dialog_view.cc
diff --git a/chrome/browser/ui/views/download/download_feedback_dialog_view.cc b/chrome/browser/ui/views/download/download_feedback_dialog_view.cc
index ff716ea27fcaba2e988f329f1088fda16a083f5d..0164ec5fb6c803e211f58071e9d6d9ba1537e3dc 100644
--- a/chrome/browser/ui/views/download/download_feedback_dialog_view.cc
+++ b/chrome/browser/ui/views/download/download_feedback_dialog_view.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/views/download/download_feedback_dialog_view.h"
+#include "base/metrics/histogram.h"
#include "base/prefs/pref_service.h"
#include "base/supports_user_data.h"
#include "chrome/browser/profiles/profile.h"
@@ -92,6 +93,8 @@ bool DownloadFeedbackDialogView::OnButtonClicked(bool accepted) {
DCHECK(data);
data->set_currently_shown(false);
+ UMA_HISTOGRAM_BOOLEAN("Download.FeedbackDialogEnabled", accepted);
+
callback_.Run(accepted);
return true;
}
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698