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

Unified Diff: components/password_manager/core/browser/password_manager_metrics_util.h

Issue 2721663002: Move Credentials when migrating to HSTS page (Closed)
Patch Set: Code Deduplication Created 3 years, 9 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/password_manager_metrics_util.h
diff --git a/components/password_manager/core/browser/password_manager_metrics_util.h b/components/password_manager/core/browser/password_manager_metrics_util.h
index 040a3be61f5148d77928e70782c5d4d68bc867e1..2fb1b73140487a3564f351cdef36bbca338046a6 100644
--- a/components/password_manager/core/browser/password_manager_metrics_util.h
+++ b/components/password_manager/core/browser/password_manager_metrics_util.h
@@ -173,6 +173,13 @@ enum CredentialManagerGetMediation {
CREDENTIAL_MANAGER_GET_UNMEDIATED
};
+// Metrics: "PasswordManager.HttpPasswordMigrationMode"
+enum HttpPasswordMigrationMode {
+ HTTP_PASSWORD_MIGRATION_MODE_MOVE,
+ HTTP_PASSWORD_MIGRATION_MODE_COPY,
+ HTTP_PASSWORD_MIGRATION_MODE_COUNT
+};
+
enum PasswordReusePasswordFieldDetected {
NO_PASSWORD_FIELD,
HAS_PASSWORD_FIELD,
@@ -229,6 +236,9 @@ void LogShouldBlockPasswordForSameOriginButDifferentScheme(bool should_block);
// Logs number of passwords migrated from HTTP to HTTPS.
void LogCountHttpMigratedPasswords(int count);
+// Logs mode of HTTP password migration.
+void LogHttpPasswordMigrationMode(HttpPasswordMigrationMode mode);
+
// Log if the account chooser has empty username or duplicate usernames. In
// addition record number of the placeholder avatars and total number of rows.
void LogAccountChooserUsability(AccountChooserUsabilityMetric usability,

Powered by Google App Engine
This is Rietveld 408576698