• James Cook's avatar
    Support SyncTypesListDisabled policy for Chrome OS sync data types · 9eedf374
    James Cook authored
    SyncTypesListDisabled allows admins to disable individual sync
    "user selectable types" by name.
    
    Extend it to work for OS types ("osApps", "osPreferences", and
    "wifiConfigurations") as well. Add migration support. While we are
    rolling out SplitSettingsSync the existing browser data types names
    "apps" and "preferences" will control the migrated types.
    
    Add unit tests for SyncTypesListDisabled to SyncPolicyHandler, for
    both the existing behavior and the new behavior.
    
          disable "apps", "bookmarks" and "preferences". Verify that
          without the SplitSettingsSync flag those data type toggles
          are disabled in browser sync settings. Verify that with
          the SplitSettingsSync flag those toggles are disabled in
          OS settings (for apps and preferences) and in browser
          settings (for bookmarks).
    
    Bug: 1058853
    Test: Use test DM server to add SyncTypesListDisabled policy to
    Test: added to components_unittests
    Change-Id: Id3427b6611007f1d1a0701f4b2eeceff607c06b7
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2090205
    Commit-Queue: James Cook <jamescook@chromium.org>
    Reviewed-by: default avatarMarc Treib <treib@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#748323}
    9eedf374
sync_policy_handler_unittest.cc 5.92 KB