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

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

Issue 1213043003: Start the migration of passwords from the Keychain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added a comment Created 5 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/keychain_migration_status_mac.h
diff --git a/components/password_manager/core/browser/keychain_migration_status_mac.h b/components/password_manager/core/browser/keychain_migration_status_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..23c2b18e2f67720f81aeb272e82ab3e8f5414c5c
--- /dev/null
+++ b/components/password_manager/core/browser/keychain_migration_status_mac.h
@@ -0,0 +1,31 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_KEYCHAIN_MIGRATION_STATUS_MAC_H
+#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_KEYCHAIN_MIGRATION_STATUS_MAC_H
+
+namespace password_manager {
+
+// Status of password migration from the Keychain.
+// The enum is used to back a histogram, and should therefore be treated as
+// append-only.
+enum class MigrationStatus {
+ // Migration wasn't tried yet.
+ NOT_STARTED = 0,
+
+ // Migration finished successfully.
+ MIGRATED,
+
+ // Migration failed once. It should be tried again.
+ FAILED_ONCE,
+
+ // Migration failed twice. It should not be tried again.
+ FAILED_TWICE,
+
+ MIGRATION_STATUS_COUNT,
+};
+
+} // namespace password_manager
+
+#endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_KEYCHAIN_MIGRATION_STATUS_MAC_H
« no previous file with comments | « components/password_manager/core/browser/BUILD.gn ('k') | components/password_manager/core/browser/password_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698