Optimize machine code size of UMA histogram macros.

Adds overloads to the histogram FactoryGet() functions
that take a const char* param, instead of std::string for
the name. This avoids the std::string constructor being
inlined at call-sites when a C string is passed (but call
sites that pass std::strings already will continue to use
the std::string functions).

In my Mac Release build, this change results in a 271K
reduction to Chromium Framework binary size.

BUG=343946

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

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


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