Use the data_decoder service in TemplateURLParser.
This requires making the TemplateURLParser be asynchronous rather than directly returning the result. That has a ripple effect of changing the lifetimes of some of the parameters to Parse(), such as the SearchTermsData. The Firefox importer also uses the TemplateURLParser (although it may be entirely broken, per https://crbug.com/868768). The importer assumes that all operations are synchronous, so this adds an internal helper class to manage the now-asynchronous state for TemplateURL parsing. Bug: 699342 Change-Id: I311d9e29dbbca34a4f5696b251a0fbaaadcc506b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1879973 Commit-Queue: Robert Sesek <rsesek@chromium.org> Reviewed-by:Ilya Sherman <isherman@chromium.org> Reviewed-by:
Martin Barbella <mbarbella@chromium.org> Reviewed-by:
Nico Weber <thakis@chromium.org> Reviewed-by:
Kevin Bailey <krb@chromium.org> Cr-Commit-Position: refs/heads/master@{#712773}
Showing
This diff is collapsed.
Please register or sign in to comment