DescriptionMove IsHostOnly() from HistoryURL provider to HistoryMatch
HistoryMatch is used by both URLs from history providers. I will soon need this function in the HistoryQuickProvider.
For reference: I searched users of GURL who do something similar. I found a handful, but all these uses are either in test or DCHECKs (like this one). (The most common equivalent use is
DCHECK(url == url.GetWithEmptyPath());
.) Given that no one else seems to use this kind of logic in production Chrome, I didn't think I should clutter the GURL interface with a function that doesn't add much value. Hence I'm leaving it the autocomplete part of the code for now.
BUG=
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153421
Patch Set 1 #
Total comments: 2
Patch Set 2 : Remove extra sentence in comment. #
Total comments: 2
Patch Set 3 : Vertical space. #
Messages
Total messages: 9 (0 generated)
|