tcmalloc: Let DEFINE_string define char arrays.

Original CL:

- https://codereview.chromium.org/286953011

  tcmalloc: Let DEFINE_string define const char*s.

  DEFINE_string is used in 3 files in tcmalloc, but we only compile one
  of these.  In this one file, the string is converted to char every
  time it's used, and since the string is used after global destructors
  have run it needs to be copied to a second string in a static
  initializer.

  Instead of all that silliness, just let DEFINE_string define a const
  char* (like it does in v8 or webrtc).

  BUG=94925
  R=willchan@chromium.org

  Committed:
  https://src.chromium.org/viewvc/chrome?view=rev&revision=271307

BUG=724399,b:70905156

Change-Id: Iec6efe53f03daff472107e700a9d833d60e33eff
Reviewed-on: https://chromium-review.googlesource.com/1130781
Commit-Queue: Gabriel Marin <gmx@chromium.org>
Reviewed-by: Will Harris <wfh@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#579528}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fa774e229e1bbcbd53f406cb2e26e3f6fd4afa56
2 files changed
tree: a0662c3615ac20faf2aba52e5e7e6925e015eb5a
  1. src/