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

Unified Diff: chrome/browser/autofill/autofill_cc_infobar_delegate.cc

Issue 2868082: AutoFill: Collect UMA stats for AutoFill CC InfoBar. (Closed)
Patch Set: Created 10 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_cc_infobar_delegate.cc
diff --git a/chrome/browser/autofill/autofill_cc_infobar_delegate.cc b/chrome/browser/autofill/autofill_cc_infobar_delegate.cc
index 36bde07e8024afe8c8cb9035e5a016f5b04f843c..89c17ba6d2a66a12b2065f34a5bf44ee40b751fb 100644
--- a/chrome/browser/autofill/autofill_cc_infobar_delegate.cc
+++ b/chrome/browser/autofill/autofill_cc_infobar_delegate.cc
@@ -6,6 +6,7 @@
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
+#include "base/histogram.h"
#include "chrome/browser/autofill/autofill_cc_infobar.h"
#include "chrome/browser/autofill/autofill_manager.h"
#include "chrome/browser/browser.h"
@@ -80,6 +81,7 @@ std::wstring AutoFillCCInfoBarDelegate::GetButtonLabel(
}
bool AutoFillCCInfoBarDelegate::Accept() {
+ UMA_HISTOGRAM_COUNTS("AutoFill.CCInfoBarAccepted", 1);
jar (doing other things) 2010/09/17 16:43:11 Rather than using two separate histograms, you sho
if (host_) {
host_->OnInfoBarClosed(true);
host_ = NULL;
@@ -88,6 +90,7 @@ bool AutoFillCCInfoBarDelegate::Accept() {
}
bool AutoFillCCInfoBarDelegate::Cancel() {
+ UMA_HISTOGRAM_COUNTS("AutoFill.CCInfoBarDenied", 1);
if (host_) {
host_->OnInfoBarClosed(false);
host_ = NULL;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698