DescriptionWebUIDataSource::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
Committed: https://crrev.com/408b01b6f8b766facfc02fcbcb2226d2e3b98be0
Cr-Commit-Position: refs/heads/master@{#423816}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Limit to 32-bit width #Patch Set 3 : . #
Total comments: 4
Patch Set 4 : DateTimeHandler usage of SetInteger #
Depends on Patchset: Messages
Total messages: 26 (14 generated)
|