[bt][l2cap] Use unique_ptr<L2cap> instead of RefPtr<L2cap>

Replace instances of fbl::RefPtr<L2cap> with std::unique_ptr<L2cap>
(in Adapter) or L2cap*. Now that L2cap is not shared across threads,
ownership is better modeled with a unique_ptr<L2cap> owned by Adapter
and weak pointers passed to other classes.

Bug: 98304
Test: fx test //src/connectivity/bluetooth/core/bt-host

Change-Id: I0e70502b7063b3b5aa368488a4fad790842b228e
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/670689
Reviewed-by: Lucas Jenkins <lucasjenkins@google.com>
Reviewed-by: Faraaz Sareshwala <fsareshwala@google.com>
Commit-Queue: Ben Lawson <benlawson@google.com>
27 files changed
tree: 097078828688cc71f00b1c64cca44a76565b6189
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. garnet/
  7. products/
  8. scripts/
  9. sdk/
  10. src/
  11. third_party/
  12. tools/
  13. zircon/
  14. .clang-format
  15. .clang-tidy
  16. .editorconfig
  17. .git-blame-ignore-revs
  18. .gitattributes
  19. .gitignore
  20. .gn
  21. .style.yapf
  22. analysis_options.yaml
  23. AUTHORS
  24. BUILD.gn
  25. CODE_OF_CONDUCT.md
  26. CONTRIBUTING.md
  27. LICENSE
  28. OWNERS
  29. PATENTS
  30. pyrightconfig.json
  31. README.md
  32. rustfmt.toml
README.md

Fuchsia

What is Fuchsia?

Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.

We expect everyone interacting with our project to respect our code of conduct.

Read more about Fuchsia's principles.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.