• Peter Kasting's avatar
    Allow WebDataService APIs to be called from any thread. · dd00e5b8
    Peter Kasting authored
    Calling one of these APIs results in creating a WebDataRequest object to allow
    calling back with the result.  This object assumed the caller had a
    ThreadTaskRunnerHandle, but there's no reason callers need to have such a
    handle.  Instead, allow calling any task back, using the thread or sequenced
    task runner if available, or simply PostTask() if not.
    
    Bug: 689520
    Change-Id: Icf901e6de5a5b629bcf9d17617baf46a45502844
    Reviewed-on: https://chromium-review.googlesource.com/578572
    Commit-Queue: Peter Kasting <pkasting@chromium.org>
    Reviewed-by: default avatarRobert Liao <robliao@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#488152}
    dd00e5b8
web_data_request_manager.cc 5.4 KB