Chromium Code Reviews
DescriptionAdd GURL::HostNoBracketsPiece()
In several places GURL::HostNoBrackets() is used as an argument to a
function that only requires a StringPiece. To avoid this unnecessary
string copy, add a HostNoBracketsPiece() variant in line with the
existing host_piece() variant.
This CL also changes calls to HostNoBrackets() to HostNoBracketsPiece()
where it is simple and useful.
BUG=
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation
Review-Url: https://codereview.chromium.org/2956643002
Cr-Commit-Position: refs/heads/master@{#483962}
Committed: https://chromium.googlesource.com/chromium/src/+/1c0de2ff74a1874e1fcfc12925694e8fd39af261
Patch Set 1 #
Total comments: 2
Patch Set 2 : Simplify test #
Messages
Total messages: 20 (13 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||