[search] Update RepeatableQueriesService to tolerate nullptr DSE
TemplateURLService::GetDefaultSearchProvider() can sometimes return nullptr. This condition occurs more frequently on startup, before the TemplateURLService has loaded the sqlite3 keyword table. This condition is made more frequent (temporarily) since my recent patch: https://chromium.googlesource.com/chromium/src/+/ecae40df17fd8eaea5e45ad62eae8e5c906e3aa7 This CL fixes a crash by making RepeatableQueriesService check whether the DSE is nullptr and gracefully early exiting in that condition. Bug: 1163453 Change-Id: I2ac2b9ca205ed7b3ecfa81cdf425b246ea2f1d8f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2613387 Commit-Queue: Moe Ahmadi <mahmadi@chromium.org> Reviewed-by:Moe Ahmadi <mahmadi@chromium.org> Cr-Commit-Position: refs/heads/master@{#840932}
Showing
Please register or sign in to comment