DescriptionCompare URL constants with .spec() and string equality
This patch replaces instances of "<url> == GURL(<string constant>)" with
"<url> == <string constant>" for string constants that are valid
GURL specs, in //chrome, using the new operator== defined for both
GURL and StringPiece.
This prevents needlessly reparsing the constant GURL, which is slow.
Follow-up changes will change these comparisons in other portions of
the code base.
BUG=655467
Committed: https://crrev.com/0b2013bac16787ab019357a3561288fadb68b87b
Cr-Commit-Position: refs/heads/master@{#426207}
Patch Set 1 #Patch Set 2 : git cl format #
Total comments: 2
Patch Set 3 : rebase on dependent patch #Depends on Patchset: Dependent Patchsets: Messages
Total messages: 28 (14 generated)
|