base::Bind has a difficult time understanding which of the overloaded methods you want. It is possible to get around this, by doing things such as
void (*runBoolCallback)(const base::android::JavaRef<jobject>&, bool) =
&base::android::RunCallbackAndroid;
base::Bind(runBoolCallback,...
However, this is clunky, complex, and often developers do not realize they could do this, and create pass through methods instead such as in https://cs.chromium.org/chromium/src/chrome/browser/android/download/service/download_background_task.cc?l=19
It would be better if each of these methods simply had a unique name. These methods are very likely to be bound into a callback, and we should make it as easy as possible for this common use case.
Comment 1 by bugdroid1@chromium.org
, Jul 2