Add error-prone plugin to verify string literals for trace events

The java trace event strings cannot be checked for string literals at
runtime. So, add a compile time check to verify that all uses are
passing in string constants.
A few exceptions are marked with suppress warnings.

Total overhead of running the plugin is about 100ms with 20ms
measurement overhead.

BUG=984827

Change-Id: Ia10fe6f9f255c7402936a287bdde8b86684dbd71
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1705518
Reviewed-by: oysteine <oysteine@chromium.org>
Reviewed-by: Tommy Nyquist <nyquist@chromium.org>
Commit-Queue: ssid <ssid@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#678527}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5c8058b795a55a121b491e0b2a4bce7360938ff7
2 files changed