Chromium Code Reviews
DescriptionEnsure TemplateUrlService is loaded in SearchActivity.
For getSearchEnginePromoShowType to be accurate the TemplateUrlService
needs to be loaded (otherwise it is not possible to correctly determine
the current default search engine).
This adds a helper function that runs an action when the template
url service is loaded and reduces the boiler plate code we had to do
that in three different places.
BUG=730776
Review-Url: https://codereview.chromium.org/2930063002
Cr-Commit-Position: refs/heads/master@{#478716}
Committed: https://chromium.googlesource.com/chromium/src/+/1a2050d4128d8a48d69daac4281db9e184c74696
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : Rebase #
Messages
Total messages: 9 (5 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||