Chromium Code Reviews
DescriptionAdd base/parse_number.h to generalize number parsing done in //net.
In particular, the current use of base::StringToInt() is problematic as it permits strings with a leading plus sign, which is invalid in most places where //net parses numbers.
BUG=596523, 596538
Committed: https://crrev.com/94e42f599fa98662868c993cc4e432fd25a40f99
Cr-Commit-Position: refs/heads/master@{#382936}
Patch Set 1 #
Total comments: 19
Patch Set 2 : respond to matt's comments #Patch Set 3 : more tests #
Dependent Patchsets: Messages
Total messages: 17 (8 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||