cryptohome: Add more DircryptoMigration statuses
Add statuses for failed, in progress, and initializing.
BUG=chromium:699445
TEST=N/A
Change-Id: I44c093e98d9c1384bf02127bda8250d7c67adcfe
Reviewed-on: https://chromium-review.googlesource.com/458357
Commit-Ready: Dan Spaid <dspaid@chromium.org>
Tested-by: Dan Spaid <dspaid@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>
diff --git a/dbus/cryptohome/dbus-constants.h b/dbus/cryptohome/dbus-constants.h
index 6c6a4ea..0c20c63 100644
--- a/dbus/cryptohome/dbus-constants.h
+++ b/dbus/cryptohome/dbus-constants.h
@@ -149,12 +149,15 @@
};
// Status code signaled from MigrateToDircrypto().
enum DircryptoMigrationStatus {
- // 0 means a successful completeion.
- DYRCRYPTO_MIGRATION_SUCCESS = 0,
+ // 0 means a successful completion.
+ DIRCRYPTO_MIGRATION_SUCCESS = 0,
// Negative values mean failing completion.
// TODO(kinaba,dspaid): Add error codes as needed here.
+ DIRCRYPTO_MIGRATION_FAILED = -1,
// Positive values mean intermediate state report for the running migration.
// TODO(kinaba,dspaid): Add state codes as needed.
+ DIRCRYPTO_MIGRATION_INITIALIZING = 1,
+ DIRCRYPTO_MIGRATION_IN_PROGRESS = 2,
};
} // namespace cryptohome