Files
brave-core/components/sync/engine
Claudio DeSouza ca54bee157 [cr145] base::to_underlying deleted
We can now use `std::to_underlying` with cxx23 switched on.

```sh
files_using_header="$(git grep -l base::to_underlying | tr '\n' ' ')"
sed -i 's/base::to_underlying/std::to_underlying/g' \
  ${files_using_header}
../tools/add_header.py --header '<utility>' ${files_using_header}
files_including_header="$(git grep -l base/types/cxx23_to_underlying.h | tr '\n' ' ')"
../tools/add_header.py --header '"base/types/cxx23_to_underlying.h"' \
  --remove ${files_including_header}
git cl format
```

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/2a2bf2f67290880f6d15f514309f0739bfda0add

commit 2a2bf2f67290880f6d15f514309f0739bfda0add
Author: Victor Hugo Vianna Silva <victorvianna@google.com>
Date:   Mon Dec 22 09:27:38 2025 -0800

    Migrate usages of base::to_underlying in //ash

    ```
    files_using_header="$(git grep -l base::to_underlying | tr '\n' ' ')"
    sed -i 's/base::to_underlying/std::to_underlying/g' \
      ${files_using_header}
    tools/add_header.py --header '<utility>' ${files_using_header}
    files_including_header="$(git grep -l base/types/cxx23_to_underlying.h | tr '\n' ' ')"
    tools/add_header.py --header '"base/types/cxx23_to_underlying.h"' \
      --remove ${files_including_header}
    git cl format
    ```

    Then some manual fixes.

    Bug: 470039537
    Change-Id: I4c8f291f2edaca23a7ea57dab278662299d5d9b8
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7278357
    Reviewed-by: James Cook <jamescook@chromium.org>
    Commit-Queue: Victor Vianna <victorvianna@google.com>
    Cr-Commit-Position: refs/heads/main@{#1561830}
2026-01-29 13:40:51 -05:00
..