libchrome: Add presubmit check for Chromium UMA collection code UMA collection macros or functions from Chromium don't work on CrOS and send the metrics silently into the void. Since such collecting code is used in //base changing to #ifdefs that fail to compile on CrOS isn't feasible. The hook can be overriden by the developer through --no-verify and this is fine as it should be a warning but not stopping the author if they don't need the metrics on CrOS. BUG=b:298176110 TEST=repo upload of code that collects UMA using Chromium code Change-Id: I5f2ec7503fb50315ab0e6eada4897252a36dba48 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/libchrome/+/4822575 Tested-by: Christoph Schlosser <[email protected]> Reviewed-by: Grace Cham <[email protected]> Commit-Queue: Christoph Schlosser <[email protected]> Reviewed-by: Ian Barkley-Yeung <[email protected]>
This directory includes the source from Chrome's libbase for use in Chrome OS.
See libchrome.md for more info.