Add SyncService::GetUploadToGoogleState
It returns whether uploading data to Google is enabled for a given ModelType, i.e. whether Sync is active and not in an error state. There are three possible return values: INITIALIZING (enabled in principle, but we don't know yet whether we'll encounter e.g. an auth error), ACTIVE (data is being uploaded to Google), or NOT_ACTIVE (uploading is either disabled entirely or in a permanent auth error state). Change-Id: I86894453bba17cfb6cd94bb3a5c82f915750ea06 Reviewed-on: https://chromium-review.googlesource.com/968821Reviewed-by:Jan Krcal <jkrcal@chromium.org> Commit-Queue: Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#544751}
Showing
Please register or sign in to comment