Change base::expected to use std::variant under the hood It previously used absl::variant, which appears not to be as constexpr friendly. E.g., it is possible for a constexpr function to return base::expected<void, std::string> when using std::variant, but not when using absl::variant. Additionally adds the include for absl::variant to a few files that were previously relying on it being included transitively via base/types/expected.h so they continue to compile, and removes one instance of an unused variable that the compiler can properly detect now that std::variant is used. Change-Id: Ibab13382202c69fd45c5aff318e8f56b3ac0d30f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6345816 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Erik Jensen <rkjnsn@chromium.org> Owners-Override: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/main@{#1431735}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.