• Wei Li's avatar
    Views: Check results of type conversions from strings · 07406e64
    Wei Li authored
    This CL changed the way how we handle conversion failures from strings.
    Instead of using the default values, this CL returns 'false' to indicate
    the conversion errors. This returned result is useful in case we need to
    handle more complex type conversions such base::optional type.
    
    Also, this CL simplify the type converter function definitions since we
    only need to and from string conversions, not between arbitrary two
    types.
    
    BUG=938501
    
    Change-Id: I1e6d8510c39a9a240161aa0b36c2141ab62ed0e8
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1606772
    Commit-Queue: Wei Li <weili@chromium.org>
    Reviewed-by: default avatarAllen Bauer <kylixrd@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#659250}
    07406e64
property_metadata.h 2.33 KB