Make HasCustomColor() match GetColor().
The latter has various transformations around when it queries the underlying the provider and with what constants. Use this behavior in HasCustomColor() too. This ensures callers get consistent behavior in these cases. Along the way this changes a multi-arm conditional to a helper function. That isn't necessary for this patch, but it will make it easy to land subsequent ones that add more such constants. Bug: 862664 Change-Id: I83295902f7c38767c3a051a40e5f195f8e78e4ef Reviewed-on: https://chromium-review.googlesource.com/1147601 Commit-Queue: Peter Kasting <pkasting@chromium.org> Reviewed-by:Evan Stade <estade@chromium.org> Cr-Commit-Position: refs/heads/master@{#577703}
Showing
Please register or sign in to comment