diff options
author | zea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-19 04:12:18 +0000 |
---|---|---|
committer | zea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-19 04:12:18 +0000 |
commit | f7f6100c83efab633fd95ead88dad16d6cde0cd7 (patch) | |
tree | c2b9aa312b54f37fa5c4a7705c6d381f02508946 /sync/internal_api/public/engine | |
parent | 8bc8d498b83137e38df86e194fba0a85dcc63d97 (diff) | |
download | chromium_src-f7f6100c83efab633fd95ead88dad16d6cde0cd7.zip chromium_src-f7f6100c83efab633fd95ead88dad16d6cde0cd7.tar.gz chromium_src-f7f6100c83efab633fd95ead88dad16d6cde0cd7.tar.bz2 |
[Sync] Add keystore encryption info to about:sync
This patch adds the following fields under the encryption section of about:sync
- Has Keystore Key: whether the encryption handler has a keystore encryption key
- Migration Time: the time migration was performed, or "Not Migrated" if
migration hasn't been performed yet
- Passphrase Type: the actual passphrase type (provides more detail than
Is Using Explicit Passphrase, but stored at a diff layer)
Added sync/api/time.h, which just includes sync/util/time.h but is accessible
from chrome/
BUG=129665
Review URL: https://chromiumcodereview.appspot.com/10917246
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157499 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/internal_api/public/engine')
-rw-r--r-- | sync/internal_api/public/engine/sync_status.cc | 4 | ||||
-rw-r--r-- | sync/internal_api/public/engine/sync_status.h | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/sync/internal_api/public/engine/sync_status.cc b/sync/internal_api/public/engine/sync_status.cc index 9ed3bf3..4018a74 100644 --- a/sync/internal_api/public/engine/sync_status.cc +++ b/sync/internal_api/public/engine/sync_status.cc @@ -30,7 +30,9 @@ SyncStatus::SyncStatus() useless_sync_cycles(0), useful_sync_cycles(0), cryptographer_ready(false), - crypto_has_pending_keys(false) { + crypto_has_pending_keys(false), + has_keystore_key(false), + passphrase_type(IMPLICIT_PASSPHRASE) { } SyncStatus::~SyncStatus() { diff --git a/sync/internal_api/public/engine/sync_status.h b/sync/internal_api/public/engine/sync_status.h index dfd9603..3b9229f 100644 --- a/sync/internal_api/public/engine/sync_status.h +++ b/sync/internal_api/public/engine/sync_status.h @@ -9,6 +9,7 @@ #include "sync/base/sync_export.h" #include "sync/internal_api/public/base/model_type.h" +#include "sync/internal_api/public/sync_encryption_handler.h" #include "sync/protocol/sync_protocol_error.h" namespace syncer { @@ -84,6 +85,9 @@ struct SYNC_EXPORT SyncStatus { ModelTypeSet encrypted_types; bool cryptographer_ready; bool crypto_has_pending_keys; + bool has_keystore_key; + base::Time keystore_migration_time; + PassphraseType passphrase_type; // Per-datatype throttled status. ModelTypeSet throttled_types; |