WebUIDataSource::AddInteger (like AddBoolean/AddString)
Convenience function to add integers to a WebUIDataSource without using AddLocalizedStrings with a base::DictionaryValue. Limits width to 32 bits to prevent integers larger than can be represented in ES6 (2^53 - 1). (As before, larger numbers could still be set via AddLocalizedStrings.) BUG=none R=tommycli@chromium.org,creis@chromium.org TEST=content_unittests:WebUIDataSourceTest Review-Url: https://codereview.chromium.org/2391073005 Cr-Commit-Position: refs/heads/master@{#423816}
Showing
Please register or sign in to comment