Replace @AutoService with @ServiceImpl to avoid annotation processor

It's easy to forget to add a dep onto the AutoService annotation
processor and compiles do not fail when you forget.

To avoid such issues, this introduces a new annotation and direct
support in compile_java.py for creating service loader files from it.

Bug: 40901855
Change-Id: Ide5805bdb96053f6047ceff33c55aed01324a08f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5850619
Commit-Queue: Andrew Grieve <[email protected]>
Reviewed-by: Sam Maier <[email protected]>
Auto-Submit: Andrew Grieve <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1353936}
NOKEYCHECK=True
GitOrigin-RevId: 19e95ddd963d9029d1cd5a46566b047085c3108d
11 files changed
tree: 44365405eec91e09b9d6c0a4d913ea751edbdc8d
  1. src/
  2. test/
  3. BUILD.gn
  4. OWNERS