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

Unified Diff: components/password_manager/core/browser/credential_manager_pending_request_task.cc

Issue 2113743002: Add instrumentation for password autofill and Credential Manager API user flows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: last comments Created 4 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
Index: components/password_manager/core/browser/credential_manager_pending_request_task.cc
diff --git a/components/password_manager/core/browser/credential_manager_pending_request_task.cc b/components/password_manager/core/browser/credential_manager_pending_request_task.cc
index dc995b0ad2a013c860242e2081edc6c6166207f9..9a9c48dbdb58c029c8f6001c76d69fc007229d6e 100644
--- a/components/password_manager/core/browser/credential_manager_pending_request_task.cc
+++ b/components/password_manager/core/browser/credential_manager_pending_request_task.cc
@@ -7,6 +7,7 @@
#include <algorithm>
#include <utility>
+#include "base/metrics/user_metrics.h"
#include "components/autofill/core/common/password_form.h"
#include "components/password_manager/core/browser/affiliated_match_helper.h"
#include "components/password_manager/core/browser/password_bubble_experiment.h"
@@ -145,6 +146,7 @@ void CredentialManagerPendingRequestTask::OnGetPasswordStoreResults(
: CredentialType::CREDENTIAL_TYPE_FEDERATED);
delegate_->client()->NotifyUserAutoSignin(std::move(local_results),
origin_);
+ base::RecordAction(base::UserMetricsAction("CredentialManager_Autosignin"));
delegate_->SendCredential(send_callback_, info);
return;
}

Powered by Google App Engine
This is Rietveld 408576698