Commit 7a26c5ad authored by Allen Bauer's avatar Allen Bauer Committed by Chromium LUCI CQ

Make bool type converter descend from BaseTypeConverter.

Bug: 938501
Change-Id: Ia852579e7e600d08c704b67d4dfdd84ea14db5fd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2625969
Commit-Queue: Allen Bauer <kylixrd@chromium.org>
Commit-Queue: Wei Li <weili@chromium.org>
Auto-Submit: Allen Bauer <kylixrd@chromium.org>
Reviewed-by: default avatarWei Li <weili@chromium.org>
Cr-Commit-Position: refs/heads/master@{#842813}
parent c0430280
......@@ -163,9 +163,7 @@ DECLARE_CONVERSIONS(gfx::Insets)
#undef DECLARE_CONVERSIONS
template <>
struct VIEWS_EXPORT TypeConverter<bool> {
static constexpr bool is_serializable = true;
static bool IsSerializable() { return is_serializable; }
struct VIEWS_EXPORT TypeConverter<bool> : BaseTypeConverter<true> {
static base::string16 ToString(bool source_value);
static base::Optional<bool> FromString(const base::string16& source_value);
static ValidStrings GetValidStrings();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment