Fixup DCHECK failure for enterprise reporting private API
In chrome.enterprisePrivate APIs, we use base::ThreadPool::PostTask in few places. Unlike PostTaskAndReply, the callback is not posted on the original thread. It causes CalledOnValidSequence check failure as we returns the extension APIs on a different thread. Fix the issue by remembering the original task runner to make sure the extension APIs are responded in the main thread. Change-Id: If3b69d56a0d8afc4c89da8104ddb24cceb07173e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2429544 Commit-Queue: Owen Min <zmin@chromium.org> Reviewed-by:Julian Pastarmov <pastarmovj@chromium.org> Cr-Commit-Position: refs/heads/master@{#810623}
Showing
Please register or sign in to comment