-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DataControlsRule parsing to ChromeDlpRulesManager
This CL adds parsing for the "DataControlsRule" policy, and creates a vectors of `data_control::Rule`s in `ChromeDlpRulesManager`. This CL is done in preparation of implementing the `ChromeDlpRulesManager` public methods to work with that new policy, and as such no new tests are added as existing behavior shouldn't change. This CL also applies the following refactors to work: - `DlpRulesManagerImpl::profile_` is moved to `ChromeDlpRulesManager` - `OnPolicyUpdate` is split into `OnDataControlsRulesUpdate` and `OnDataLeakPreventionRulesUpdate` to independently update the two DLP policies as they change dynamically. - The ctor of `DlpRulesManager` is changed to include a Profile ptr to pass to `ChromeDlpRulesManager`. Several tests and mocks are updated to reflect this. Bug: b/302340176 Change-Id: I7744e5e64347f832c066be202a22d620c18d5cde Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4935878 Reviewed-by: Sergey Poromov <poromov@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Dominique Fauteux-Chapleau <domfc@chromium.org> Cr-Commit-Position: refs/heads/main@{#1210494}
- Loading branch information
1 parent
4617b22
commit 1ee7f71
Showing
28 changed files
with
258 additions
and
155 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
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
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.