Do Perfect Forwarding from base::Bind to BindState storage

Replace StorageType usage with std::decay and do Perfect Forwarding from
base::Bind to BindState storage as a preparation to store a move-only
type into BindState.

The difference of StorageType and std::decay is essentially array
handling. CallbackParamTraits::StorageType converts "T[n]" to "const T*"
OTOH std::decay converts it to "T*".

BUG=554299

Review URL: https://codereview.chromium.org/1644603003

Cr-Commit-Position: refs/heads/master@{#372900}


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