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-Commit-Position: refs/heads/master@{#538076}

CrOS-Libchrome-Original-Commit: 0ed911addbe5d8988b6de0907becdaaf0ba0cf73
1 file changed
tree: a60b336b8ebb14d03574549426ddd53855f51a68
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/