forked from chromium/chromium
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Lacros] Do not create AccountProfileMapper if the feature is off
AccountProfileMapper should only be created if the kMultiProfileAccountConsistency feature is enabled. Otherwise, it might have negative side-effects like deleting user profiles. To add a DCHECK(kMultiProfileAccountConsistency) to AccountProfileMapper, this CL also enables kMultiProfileAccountConsistency in all related unit tests. This appears to be a non-trivial task because ProfileManager will now create its own instance of AccountProfileMapper that doesn't use an AccountManagerFacade mock. This CL adds a TestingProfileManager::SetAccountProfileMapper() methods to inject a fake instance for testing. Bug: 1226045 Change-Id: I69f74aed3f4bd9bdb107912d5e92872d53691a07 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3222809 Reviewed-by: David Roger <[email protected]> Commit-Queue: Alex Ilin <[email protected]> Cr-Commit-Position: refs/heads/main@{#931942}
- Loading branch information
Alex Ilin
authored and
Chromium LUCI CQ
committed
Oct 15, 2021
1 parent
c09437a
commit 7db902d
Showing
6 changed files
with
90 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.