ProfileSyncService currently exposes an unreasonable number of state getters:
General state from SyncService:
- IsFirstSetupComplete
- IsSyncAllowed
- IsSyncActive
- IsLocalSyncEnabled
- CanSyncStart
- IsFirstSetupInProgress
- IsSetupInProgress
- ConfigurationDone
- GetAuthError
- HasUnrecoverableError
- IsEngineInitialized
and added by ProfileSyncService:
- IsSyncRequested
- IsSyncAllowedByFlag
- IsSyncAllowedByPlatform
- IsSyncConfirmationNeeded
- IsManaged
- configure_status
- waiting_for_auth
Additionally there's a bunch of "status" things (mostly?) for display in the UI:
- GetSyncTokenStatus
- QuerySyncStatusSummaryString
- QueryDetailedSyncStatus
- QuerySyncStatusSummary
And some encryption/passphrase-related things:
(SyncService)
- IsPassphraseRequiredForDecryption
- IsUsingSecondaryPassphrase
- IsEncryptEverythingEnabled
- IsCryptographerReady
(ProfileSyncService)
- GetPassphraseType
- IsEncryptEverythingAllowed
And some datatype-related things:
- GetActiveDataTypes
- GetPreferredDataTypes
- GetEncryptedDataTypes
- GetForcedDataTypes
- GetRegisteredDataTypes
ProfileSyncService currently exposes an unreasonable number of state getters:
General state from SyncService:
- IsFirstSetupComplete
- IsSyncAllowed
- IsSyncActive
- IsLocalSyncEnabled
- CanSyncStart
- IsFirstSetupInProgress
- IsSetupInProgress
- ConfigurationDone
- GetAuthError
- HasUnrecoverableError
- IsEngineInitialized
and added by ProfileSyncService:
- IsSyncRequested
- IsSyncAllowedByFlag
- IsSyncAllowedByPlatform
- IsSyncConfirmationNeeded
- IsManaged
- configure_status
- waiting_for_auth
Additionally there's a bunch of "status" things (mostly?) for display in the UI:
- GetSyncTokenStatus
- QuerySyncStatusSummaryString
- QueryDetailedSyncStatus
- QuerySyncStatusSummary
- GetTypeStatusMap
And some encryption/passphrase-related things:
(SyncService)
- IsPassphraseRequiredForDecryption
- IsUsingSecondaryPassphrase
- IsEncryptEverythingEnabled
- IsCryptographerReady
(ProfileSyncService)
- GetPassphraseType
- IsEncryptEverythingAllowed
And some datatype-related things:
- GetActiveDataTypes
- GetPreferredDataTypes
- GetEncryptedDataTypes
- GetForcedDataTypes
- GetRegisteredDataTypes
- data_type_status_table
ProfileSyncService currently exposes an unreasonable number of state getters:
General state from SyncService:
- IsFirstSetupComplete
- IsSyncAllowed
- IsSyncActive
- IsLocalSyncEnabled
- CanSyncStart
- IsFirstSetupInProgress
- IsSetupInProgress
- ConfigurationDone
- GetAuthError
- HasUnrecoverableError
- IsEngineInitialized
and added by ProfileSyncService:
- IsSyncRequested
- IsSyncAllowedByFlag
- IsSyncAllowedByPlatform
- IsSyncConfirmationNeeded
- IsManaged
- configure_status
- waiting_for_auth
Additionally there's a bunch of "status" things (mostly?) for display in the UI:
- GetSyncTokenStatus
- QuerySyncStatusSummaryString
- QueryDetailedSyncStatus
- QuerySyncStatusSummary
- GetTypeStatusMap
And some encryption/passphrase-related things:
(SyncService)
- IsPassphraseRequired
- IsPassphraseRequiredForDecryption
- IsUsingSecondaryPassphrase
- IsEncryptEverythingEnabled
- IsCryptographerReady
(ProfileSyncService)
- GetPassphraseType
- IsEncryptEverythingAllowed
And some datatype-related things:
- GetActiveDataTypes
- GetPreferredDataTypes
- GetEncryptedDataTypes
- GetForcedDataTypes
- GetRegisteredDataTypes
- data_type_status_table
ProfileSyncService currently exposes an unreasonable number of state getters:
General state from SyncService:
- IsFirstSetupComplete
- IsSyncAllowed
- IsSyncActive
- IsLocalSyncEnabled
- CanSyncStart
- IsFirstSetupInProgress
- IsSetupInProgress
- ConfigurationDone
- GetAuthError
- HasUnrecoverableError
- IsEngineInitialized
and added by ProfileSyncService:
- IsSyncRequested
- IsSyncAllowedByFlag
- IsSyncAllowedByPlatform
- IsSyncConfirmationNeeded
- IsManaged
- configure_status
- waiting_for_auth
Additionally there's a bunch of "status" things (mostly?) for display in the UI:
- GetSyncTokenStatus
- QuerySyncStatusSummaryString
- QueryDetailedSyncStatus
- QuerySyncStatusSummary
- GetTypeStatusMap
And some encryption/passphrase-related things:
(SyncService)
- IsPassphraseRequired
- IsPassphraseRequiredForDecryption
- IsUsingSecondaryPassphrase
- IsEncryptEverythingEnabled
- IsCryptographerReady
(ProfileSyncService)
- GetPassphraseType
- IsEncryptEverythingAllowed
And some datatype-related things:
- GetActiveDataTypes
- GetPreferredDataTypes
- GetEncryptedDataTypes
- GetForcedDataTypes
- GetRegisteredDataTypes
- data_type_status_table
Doc with more details and proposal: go/pss-state-cleanup
Comment 1 by tschumann@chromium.org
, May 7 2018