Add CheckedNumeric::AssignIfValid() method

Helper for safely testing and extracting the underlying value.

BUG=668713

Review-Url: https://codereview.chromium.org/2535603002
Cr-Commit-Position: refs/heads/master@{#434564}
2 files changed