Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wake lock: Drop WakeLockType in favor of V8WakeLockType.
The (not so new anymore) bindings layer creates a V8WakeLockType class corresponding to the WakeLockType enum in IDL that already takes care of validating values received from script as well as providing a C++ enum representation of the IDL enum. This means we no longer need to define our own WakeLockType in C++ and can instead just use V8WakeLockType (and V8WakeLockType::Enum) directly. We no longer need to perform string comparisons for the enum values, and the switch statements will automatically cause build failures if we add new enum values without updating them accordingly. This change has no user-visible effects. Change-Id: Icd47f9a01c58bb9cacab59a3afc9f06f2b3f2922 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3532009 Reviewed-by: Reilly Grant <reillyg@chromium.org> Commit-Queue: Raphael Kubo Da Costa <raphael.kubo.da.costa@intel.com> Auto-Submit: Raphael Kubo Da Costa <raphael.kubo.da.costa@intel.com> Cr-Commit-Position: refs/heads/main@{#984250}
- Loading branch information
Showing
13 changed files
with
132 additions
and
163 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.