chromeos::Uri: Add method SetPort(const std::string&)
Adds a method that allows for setting a new port value directly from a string. Also add missing validation for the old SetPort(int) method. BUG=none TEST=on my laptop, a dedicated unit test was added Change-Id: I3adc98928ef7e136619cbce4184dff1d1dc11e47 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2208650 Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org> Reviewed-by:Sean Kau <skau@chromium.org> Cr-Commit-Position: refs/heads/master@{#770317}
Showing
Please register or sign in to comment