Fix a couple DCHECK errors
* LibAssistant will make a couple file IO during creation. Moved the creation to background thread to avoid DCHECK. * LibAssistant start will sync wait, this is not allowed in Chromium code and triggers a DCHECK error. Now we created a new start API which takes a callback. This API will be non-blocking and invokes callback when it's done. Bug: 826536, 826462 Test: locally build and run, no DCHECK Change-Id: If6384977838d3056a75df8becbba5257dba71555 Reviewed-on: https://chromium-review.googlesource.com/991458 Commit-Queue: Xiaohui Chen <xiaohuic@chromium.org> Reviewed-by:Muyuan Li <muyuanli@chromium.org> Cr-Commit-Position: refs/heads/master@{#553331}
Showing
Please register or sign in to comment