Work around Clang's new -Wmismatched-new-delete warning.

In r237368, Clang started warning about mismatched operator new[] and delete
calls. This pacifies the warning by moving the operator new-call to a separate
function.

BUG=none

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

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


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