Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use UserPerformanceTuningManager for battery saver in PM's metrics pr…
…ovider This CL changes performance manager's metrics provider to use UserPerformanceTuningManager when determining if battery saver mode is enabled. This change is required because battery saver mode is changing to be controlled by multiple signals instead of a single preference. Achieving this requires moving some files from components to c/b as well as reworking some tests. UserPerformanceTuningManager also gets some of its functionality through dependency injection to allow for mocking in tests. Bug: 1348590 Change-Id: I1ca20ff49d4a1f409953b12c8813efd8b1509bc5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3821584 Reviewed-by: Francois Pierre Doray <fdoray@chromium.org> Reviewed-by: Avi Drissman <avi@chromium.org> Commit-Queue: Anthony Vallée-Dubois <anthonyvd@chromium.org> Reviewed-by: Alexei Svitkine <asvitkine@chromium.org> Cr-Commit-Position: refs/heads/main@{#1034091}
- Loading branch information
Anthony Vallee-Dubois
authored and
Chromium LUCI CQ
committed
Aug 11, 2022
1 parent
5a33cec
commit f125643
Showing
15 changed files
with
338 additions
and
140 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
Oops, something went wrong.