refactor: prefer Sorted variant of MakeFixedFlatSet() (#39537)
perf: prefer Sorted variant of MakeFixedFlatSet()
4660000
says that the sorted version is simpler at compile time because it
can skip MakeFixedFlatSet()'s compile-time dynamic sorting.
This commit is contained in:
parent
8374b9c2ad
commit
213388cd87
3 changed files with 32 additions and 23 deletions
|
@ -45,7 +45,7 @@ electron::UsbChooserContext* GetChooserContext(
|
|||
// These extensions can claim the smart card USB class and automatically gain
|
||||
// permissions for devices that have an interface with this class.
|
||||
constexpr auto kSmartCardPrivilegedExtensionIds =
|
||||
base::MakeFixedFlatSet<base::StringPiece>({
|
||||
base::MakeFixedFlatSetSorted<base::StringPiece>({
|
||||
// Smart Card Connector Extension and its Beta version, see
|
||||
// crbug.com/1233881.
|
||||
"khpfeaanjngmcnplbdlpegiifgpfgdco",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue