Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare to remove AreExtensionsRestrictedToPrimaryAccount
AreExtensionsRestrictedToPrimaryAccount returns true when account consistency (Mirror or DICE) is disabled. We distinguish 2 cases: a) On Desktop: DICE is disable only when sign-in is not allowed b) On ChromeOS: Mirror is disabled when account manager is not enabled. This corresponds to sessions like Guest, public session and kiosk mode where signing in to Chrome is disabled. https://source.chromium.org/chromium/chromium/src/+/master:chrome/browser/ash/account_manager/account_manager_util.cc This CL adds a DCHECK to validate that AreExtensionsRestrictedToPrimaryAccount() always returns false when sign-in is allowed. This is as a temporary CL to prepare the removal of AreExtensionsRestrictedToPrimaryAccount(). Bug: 1181236 Change-Id: I776124f95892b1b7c31022d33584ccd8770a7b81 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2713802 Commit-Queue: Mihai Sardarescu <msarda@chromium.org> Reviewed-by: Alex Ilin <alexilin@chromium.org> Cr-Commit-Position: refs/heads/master@{#856644}
- Loading branch information