| Index: chrome/browser/sync/glue/sync_backend_host.h
|
| diff --git a/chrome/browser/sync/glue/sync_backend_host.h b/chrome/browser/sync/glue/sync_backend_host.h
|
| index 3a42a6a6260aba40150ca1b368ebd267be10a69f..6e616b63fef66ef71469cd40f5363c1412adc3ac 100644
|
| --- a/chrome/browser/sync/glue/sync_backend_host.h
|
| +++ b/chrome/browser/sync/glue/sync_backend_host.h
|
| @@ -454,6 +454,11 @@ class SyncBackendHost : public BackendDataTypeConfigurer {
|
| // Invoked when sync finishes encrypting new datatypes.
|
| void NotifyEncryptionComplete();
|
|
|
| + // Invoked when the passphrase state has changed. Caches the passphrase state
|
| + // for later use on the UI thread.
|
| + void HandlePassphraseStateChangedOnFrontendLoop(
|
| + syncer::PassphraseState state);
|
| +
|
| void HandleStopSyncingPermanentlyOnFrontendLoop();
|
|
|
| // Dispatched to from OnConnectionStatusChange to handle updating
|
| @@ -522,6 +527,12 @@ class SyncBackendHost : public BackendDataTypeConfigurer {
|
| // were cached.
|
| sync_pb::EncryptedData cached_pending_keys_;
|
|
|
| + // The state of the passphrase required to decrypt the bag of encryption keys
|
| + // in the nigori node. Updated whenever a new nigori node arrives or the user
|
| + // manually changes their passphrase state. Cached so we can synchronously
|
| + // check it from the UI thread.
|
| + syncer::PassphraseState cached_passphrase_state_;
|
| +
|
| // UI-thread cache of the last SyncSessionSnapshot received from syncapi.
|
| syncer::sessions::SyncSessionSnapshot last_snapshot_;
|
|
|
|
|