Fixed memory leak in autocomplete tests because of history service
It's important to explicitly shutdown history service if it's using own thread. Otherwise thread will keep working after calling RunUntilIdle() and will be able to post tasks to UI thread. This tasks will not be processed which will lead to leaking of HistoryDBTask (which is destroyed in this tasks). Change-Id: I63495794c257983dfdae3f3c7671d89e96eea8f8 Reviewed-on: https://chromium-review.googlesource.com/c/1280545Reviewed-by:Mark Pearson <mpearson@chromium.org> Commit-Queue: Alexander Yashkin <a-v-y@yandex-team.ru> Cr-Commit-Position: refs/heads/master@{#599930}
Showing
Please register or sign in to comment