[fuchsia] Allow published service name to be set explicitly.
The ScopedService* publishing templates infer the service name from the supplied Interface class. It is sometimes desirable to publish a service under a manually-specified name, e.g. if the service isn't actually defined as [Discoverable], or it's needed to publish it under a different name. The templates now accept an explicit |name| parameter which defaults to the name of the Interface, if available. Bug: b/171256428 Test: locally tested and pass unit tests Change-Id: If206fea8a7555baea5806b8526be2affc1e0dc74 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2486620 Commit-Queue: Hai Bi <bihai@google.com> Reviewed-by:Kevin Marshall <kmarshall@chromium.org> Reviewed-by:
Wez <wez@chromium.org> Cr-Commit-Position: refs/heads/master@{#819405}
Showing
Please register or sign in to comment