Fix invalid WeakPtr usage in cert reporting test utils.
Fix invalid WeakPtr usage in cert reporting test utils. CertReportJobInterceptor::MaybeInterceptRequest was posting IO thread- affine WeakPtrs onto the UI thread, which is an invalid use of WeakPtr. This CL replaces the use of WeakPtr with Unretained(). WeakPtr seems overkill for test code, as the test cases may block & join to ensure proper destruction ordering. R=vakh@chromium.org CC=wez@chromium.org TBR=vakh@chromium.org Bug: 729716 Change-Id: I99a07e1098d3a8341dbc2043ca2b335b9d97ef60 Reviewed-on: https://chromium-review.googlesource.com/527732 Commit-Queue: Kevin Marshall <kmarshall@chromium.org> Reviewed-by:Mustafa Emre Acer <meacer@chromium.org> Cr-Commit-Position: refs/heads/master@{#487637}
Showing
Please register or sign in to comment