Disallow raw pointers to RefCounted-like types on base::Bind

base::Bind has disallowed to bind raw pointers to subclasses of
base::RefCounted and base::RefCountedThreadSafe, but it slightly doesn't
match to the requirement of the special handling of the receiver.

After this CL, Bind starts rejecting any types that has AddRef and
Release.

Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win10_chromium_x64_rel_ng;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: I4a85bc1495f45e271ecb55e4a59b8e33264ce02d
Reviewed-on: https://chromium-review.googlesource.com/923904
Reviewed-by: Yoshiki Iguchi <yoshiki@chromium.org>
Reviewed-by: Xiaohan Wang <xhwang@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#538076}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0ed911addbe5d8988b6de0907becdaaf0ba0cf73
1 file changed