OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_KEYCHAIN_MIGRATION_STATUS_MAC_H |
| 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_KEYCHAIN_MIGRATION_STATUS_MAC_H |
| 7 |
| 8 namespace password_manager { |
| 9 |
| 10 // Status of password migration from the Keychain. |
| 11 // The enum is used to back a histogram, and should therefore be treated as |
| 12 // append-only. |
| 13 enum class MigrationStatus { |
| 14 // Migration wasn't tried yet. |
| 15 NOT_STARTED = 0, |
| 16 |
| 17 // Migration finished successfully. |
| 18 MIGRATED, |
| 19 |
| 20 // Migration failed once. It should be tried again. |
| 21 FAILED_ONCE, |
| 22 |
| 23 // Migration failed twice. It should not be tried again. |
| 24 FAILED_TWICE, |
| 25 |
| 26 MIGRATION_STATUS_COUNT, |
| 27 }; |
| 28 |
| 29 } // namespace password_manager |
| 30 |
| 31 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_KEYCHAIN_MIGRATION_STATUS_MA
C_H |
OLD | NEW |