Make Linker.isUsed() static, and clean up the fallout.

Make Linker.isUsed() static, so that client code no longer needs to
instantiate a Linker simply to find out that one is not used.
Clean up call sites to avoid nugatory instantiations.

Fix a race that occurred in testing code (prevalent on arm64 but
unseen on arm32) because of the previous non-static Linker.isUsed(),
add Linker testing convenience setup function, and clean up client
code that must configure a Linker for testing if required.

Enable testing for arm64, and check that it now works cleanly.

Tidy up a few method names and string formatting. Add a previously
missing synchronized(singletonLock).

BUG=385553

Review URL: https://codereview.chromium.org/1314823003

Cr-Commit-Position: refs/heads/master@{#346700}


CrOS-Libchrome-Original-Commit: 51958d6ded60cc90a9814220c55db2a8dce0d181
4 files changed
tree: b7f78e5683b9e0cd989811acfad97d4d57cf96e1
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/