Remove cancelWithError() from DocumentThreadableLoader
cancelWithError() should be removed because: - The code creating a ResourceError when error is null in cancelWithError() can be moved to cancel() to simplify the logic. - Check on m_client and resource() is unnecessary when it's called from didTimeout. As a bonus, factor out the common logic that detaches m_client and calls didFail()/didFailAccessControlCheck() on the detached client into methods. R=yhirano@chromium.org BUG=none Review-Url: https://codereview.chromium.org/2563933003 Cr-Commit-Position: refs/heads/master@{#437895}
Showing
Please register or sign in to comment