Unblock default pinned apps roll if sync is disabled
When rolling default set of apps pinned to shelf, chrome_launcher_prefs would check whether it's safe to do so using IsSafeToApplyDefaultPinLayout(). One of conditions was verifying that the app list sync has already started (to avoid getting default pinned apps getting later overridden by an update from app list sync). This does not work if sync is disabled for the profile, as in that case sync would never start, so default apps roll would be delayed indefinitely. For example, this may happen when logging in using a fake user (by bypassing full login flow in test environments, or on linux-chromeos). This updates the logic in IsSafeToApplyDefaultPinLayout() to allow rolling default pinned apps if sync is disabled. This matches the logic that's already in place for OS settings with split settings feature enabled. TEST=Run linux-chromeos with a fresh user data dir, and with no --login-manager flag. Verify that both Chrome and Files app are pinned to the shelf by default (both with SplitSettingsSync feature enabled and disabled). BUG=1166063,1154486 Change-Id: I8293b7a26447e5b5299b447984ce63417ead7653 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2640308Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Toni Baržić <tbarzic@chromium.org> Cr-Commit-Position: refs/heads/master@{#845482}
Showing
Please register or sign in to comment