Make various string_util functions take StringPieces instead of char[].

This allows most callers to pass string literals or results of ASCIIToUTF16(),
rather than construct error-prone character arrays that must be manually
nul-terminated.

Also cleans up various bits of the callers.

BUG=104260
TEST=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273765 0039d316-1c4b-4281-b951-d872f2087c98


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