Use OAuth2 FailCaller after its construction is completed
`new FailCaller` in oauth2_access_token_fetcher_immediate_error.cc may return a stale pointer if PostTask in its ctor failed, since base::Bind there increments the ref count, and the callback destruction releases it. This CL moves the PostTask after the completion of the ctor call. Bug: 866456 Change-Id: Id185e46292238955b3da9015903dfa6a8c94e7e9 Reviewed-on: https://chromium-review.googlesource.com/1146345Reviewed-by:Mihai Sardarescu <msarda@chromium.org> Commit-Queue: Taiju Tsuiki <tzik@chromium.org> Cr-Commit-Position: refs/heads/master@{#578150}
Showing
Please register or sign in to comment