|
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.
Committed: https://crrev.com/c15100ce1266e52a77f2974ffe9dfb833f5e58b3
Cr-Commit-Position: refs/heads/master@{#342219}
Total comments: 2
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+115 lines, -80 lines) |
Patch |
|
M |
base/environment.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
base/files/file_util_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
base/guid_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
base/strings/string_util.h
|
View
|
1
2
3
|
3 chunks |
+18 lines, -16 lines |
0 comments
|
Download
|
|
M |
base/strings/string_util.cc
|
View
|
1
2
3
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
|
M |
base/strings/string_util_unittest.cc
|
View
|
1
2
|
1 chunk |
+18 lines, -18 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/input_method/input_method_util.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/prerender/prerender_manager.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/push_messaging/push_messaging_app_identifier.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/supervised_user/supervised_user_url_filter.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/installer/util/l10n_string_util.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
components/autofill/core/browser/address.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
components/autofill/core/browser/autofill_country.cc
|
View
|
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
components/autofill/core/browser/personal_data_manager.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
components/dom_distiller/core/viewer.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
components/policy/core/common/cloud/cloud_policy_validator_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
components/test_runner/event_sender.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
components/translate/core/language_detection/language_detection_util.cc
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/input/web_input_event_util.cc
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/child/appcache/web_application_cache_host_impl.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/renderer/android/phone_number_detector.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
extensions/renderer/runtime_custom_bindings.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
media/base/mime_util.cc
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
net/http/http_auth_handler_ntlm_portable.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
net/http/http_util_unittest.cc
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
storage/common/fileapi/file_system_util.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
ui/base/ime/chromeos/input_method_descriptor.cc
|
View
|
1
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
Total messages: 30 (14 generated)
|