DescriptionCreates a new helper function to extract search terms from the URL irrespective of the availability of InstantExtendedEnabledParam.
Previously, InstantSearchPrerenderer invoked chrome::GetSearchTermsFromURL() to extract search terms from the search page url. chrome::GetSearchTermsFromURL() returns a valid non-empty string iff the url has an InstantExtendedEnabledParam("&espv"). If the query extraction is turned off, the search request url will not have an InstantExtendedEnabledParam. In those cases, chrome::GetSearchTermsFromURL() returns an empty string to the InstantSearchPrerenderer.
To extract search terms for InstantSearchPrerenderer, we should not depend on the query extraction flag or the Instant support state of the page.
Follow up of crrev.com/151813002.
BUG=none
TEST=none
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251234
Patch Set 1 #
Total comments: 10
Patch Set 2 : Rebase #Patch Set 3 : Addressed comments #
Total comments: 13
Patch Set 4 : Rebase #Patch Set 5 : Addressed comments. #
Total comments: 4
Patch Set 6 : Addressed comments #Patch Set 7 : Rebase #
Total comments: 12
Patch Set 8 : Addressed comments #Patch Set 9 : Rebase #Patch Set 10 : Rebase #Messages
Total messages: 24 (0 generated)
|