Replace StringToLowerASCII with base::ToLowerASCII

Standardize on using string pieces and returning strings. Remove in-place version (this was only used in a couple places and they were not performance-critical).

De-templatize the character versions of ToUpperASCII/ToLowerASCII. This would lead to bizarre errors if you pass other things (like a string). This is so little code, it's now just duplicated.

I renamed StringToLowerASCII to just be ToLowerASCII so you can pass whatever you want to ToLowerASCII and it does the right thing. This seems simpler to me.

This replaces all calls of StringToUpperASCII to the new form. The lowercase version is more common and will be done in a separate pass.

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

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


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