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

Side by Side Diff: components/password_manager/core/browser/password_manager_metrics_util.cc

Issue 2890423002: Metrics for submission event when a user accepts save/update prompt. (Closed)
Patch Set: Comments addressed Created 3 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/password_manager/core/browser/password_manager_metrics_util .h" 5 #include "components/password_manager/core/browser/password_manager_metrics_util .h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/metrics/histogram_macros.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "base/metrics/user_metrics.h" 9 #include "base/metrics/user_metrics.h"
10 #include "base/numerics/safe_conversions.h" 10 #include "base/numerics/safe_conversions.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 } 175 }
176 176
177 void LogPasswordSuccessfulSubmissionIndicatorEvent( 177 void LogPasswordSuccessfulSubmissionIndicatorEvent(
178 autofill::PasswordForm::SubmissionIndicatorEvent event) { 178 autofill::PasswordForm::SubmissionIndicatorEvent event) {
179 UMA_HISTOGRAM_ENUMERATION( 179 UMA_HISTOGRAM_ENUMERATION(
180 "PasswordManager.SuccessfulSubmissionIndicatorEvent", event, 180 "PasswordManager.SuccessfulSubmissionIndicatorEvent", event,
181 autofill::PasswordForm::SubmissionIndicatorEvent:: 181 autofill::PasswordForm::SubmissionIndicatorEvent::
182 SUBMISSION_INDICATOR_EVENT_COUNT); 182 SUBMISSION_INDICATOR_EVENT_COUNT);
183 } 183 }
184 184
185 void LogPasswordAcceptedSaveUpdateSubmissionIndicatorEvent(
186 autofill::PasswordForm::SubmissionIndicatorEvent event) {
187 UMA_HISTOGRAM_ENUMERATION(
188 "PasswordManager.AcceptedSaveUpdateSubmissionIndicatorEvent", event,
189 autofill::PasswordForm::SubmissionIndicatorEvent::
190 SUBMISSION_INDICATOR_EVENT_COUNT);
191 }
192
185 } // namespace metrics_util 193 } // namespace metrics_util
186 194
187 } // namespace password_manager 195 } // namespace password_manager
OLDNEW
« no previous file with comments | « components/password_manager/core/browser/password_manager_metrics_util.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698