| Index: chrome/browser/sync/profile_sync_service.h
|
| diff --git a/chrome/browser/sync/profile_sync_service.h b/chrome/browser/sync/profile_sync_service.h
|
| index 631c7808ceb0f37934a34f03708a969835485aaf..5393c5f6b16babc050182f7d00972df1b4430ac1 100644
|
| --- a/chrome/browser/sync/profile_sync_service.h
|
| +++ b/chrome/browser/sync/profile_sync_service.h
|
| @@ -667,6 +667,13 @@ class ProfileSyncService : public ProfileSyncServiceBase,
|
| virtual bool SetDecryptionPassphrase(const std::string& passphrase)
|
| WARN_UNUSED_RESULT;
|
|
|
| + // Returns true if encrypting all the sync data is allowed. If this method
|
| + // returns false, EnableEncryptEverything() should not be called.
|
| + virtual bool EncryptEverythingAllowed() const;
|
| +
|
| + // Sets whether encrypting all the sync data is allowed or not.
|
| + virtual void SetEncryptEverythingAllowed(bool allowed);
|
| +
|
| // Turns on encryption for all data. Callers must call OnUserChoseDatatypes()
|
| // after calling this to force the encryption to occur.
|
| virtual void EnableEncryptEverything();
|
| @@ -1046,6 +1053,9 @@ class ProfileSyncService : public ProfileSyncServiceBase,
|
| // syncer::Cryptographer::SensitiveTypes().
|
| syncer::ModelTypeSet encrypted_types_;
|
|
|
| + // Whether encrypting everything is allowed.
|
| + bool encrypt_everything_allowed_;
|
| +
|
| // Whether we want to encrypt everything.
|
| bool encrypt_everything_;
|
|
|
|
|