Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Issue 1282363003: Convert remaining StringToLowerASCII to ToLowerASCII (Closed)

Created:
5 years, 4 months ago by brettw
Modified:
5 years, 4 months ago
Reviewers:
yzshen1, Ryan Sleevi
CC:
chromium-reviews, qsr+mojo_chromium.org, zea+watch_chromium.org, viettrungluu+watch_chromium.org, jdduke+watch_chromium.org, yzshen+watch_chromium.org, dcheng, dmazzoni+watch_chromium.org, ben+mojo_chromium.org, tim+watch_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, aboxhall+watch_chromium.org, stevenjb+watch_chromium.org, chromoting-reviews_chromium.org, jam, abarth-chromium, pvalenzuela+watch_chromium.org, je_julie, darin-cc_chromium.org, jkarlin+watch_chromium.org, chromium-apps-reviews_chromium.org, maniscalco+watch_chromium.org, ozone-reviews_chromium.org, mlamouri+watch-content_chromium.org, tdresser+watch_chromium.org, yuzo+watch_chromium.org, feature-media-reviews_chromium.org, nhiroki, oshima+watch_chromium.org, kalyank, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-manifest_chromium.org, jochen+watch_chromium.org, sdefresne+watch_chromium.org, plundblad+watch_chromium.org, maxbogue+watch_chromium.org, nektar+watch_chromium.org, Aaron Boodman, plaree+watch_chromium.org, mmenke, dtseng+watch_chromium.org, Paweł Hajdan Jr., mkwst+moarreviews-renderer_chromium.org, darin (slow to review), jshin+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert remaining StringToLowerASCII to ToLowerASCII. Remove StringToLowerASCII. This removes the template and makes a consistent call that can take a string piece. http_response_headers.cc in HttpResponseHeaders::RemoveHeaderLine there seemed to be a bug where it did std::string old_header_name_lowercase(name); where it actually meant std::string old_header_name_lowercase(old_header_name); I fixed this. There were a number of cases where url.host() or url.scheme() was passed to ToLowerASCII. These are already guaranteed lower-case, so I removed the call. There were a number of cases in net that did return ToLowerASCII().c_str() when the return type is a std::string, which is unnecessary and wasteful. I removed the c_str() call. NOPRESUBMIT=true (for touching code with wstrings) Committed: https://crrev.com/8e2106dd88a61950569f9cfa8a94ad436d858658 Cr-Commit-Position: refs/heads/master@{#342869}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -237 lines) Patch
M base/strings/string_util.h View 1 chunk +0 lines, -16 lines 0 comments Download
M components/mime_util/mime_util.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/storage_monitor/portable_device_watcher_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/update_client/utils.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/url_matcher/regex_set_matcher.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/cache_storage/cache_storage.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/cache_storage/cache_storage_manager.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/child/browser_font_resource_trusted.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/child/npapi/npobject_stub.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/child/npapi/plugin_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/child/npapi/plugin_stream.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/child/npapi/webplugin_delegate_impl_win.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/plugin_list.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/common/plugin_list_win.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M content/public/browser/media_device_id.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/accessibility/blink_ax_tree_source.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/manifest/manifest_parser.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/npapi/webplugin_impl.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.cc View 1 chunk +1 line, -1 line 0 comments Download
M crypto/symmetric_key_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M device/core/device_monitor_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M device/hid/hid_service_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/api/web_request/web_request_api_helpers.cc View 1 3 chunks +10 lines, -17 lines 0 comments Download
M extensions/browser/extension_registry.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/extension_throttle_manager.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/sandboxed_unpacker.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/verified_contents.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M extensions/common/csp_validator.cc View 1 2 2 chunks +3 lines, -8 lines 0 comments Download
M extensions/common/message_bundle.cc View 5 chunks +5 lines, -7 lines 0 comments Download
M extensions/common/permissions/socket_permission_entry.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M google_apis/gaia/gaia_auth_util.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M google_apis/gcm/engine/gservices_settings.cc View 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/chrome_url_util.mm View 1 chunk +1 line, -1 line 0 comments Download
M media/base/mime_util.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M media/blink/cache_util.cc View 1 chunk +1 line, -2 lines 0 comments Download
M media/blink/key_system_config_selector.cc View 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/network/http_server_apptest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/shell/network_fetcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/data_url.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/filename_util.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M net/base/filename_util_internal.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/base/host_mapping_rules.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/mime_util.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M net/base/net_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/network_change_notifier.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/sdch_manager.cc View 1 6 chunks +8 lines, -11 lines 0 comments Download
M net/cert/x509_certificate.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/cookies/cookie_constants.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/cookies/parsed_cookie.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/dns/dns_config_service_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/dns/dns_hosts.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/dns/host_resolver_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/ftp/ftp_directory_listing_parser_vms.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/ftp/ftp_network_transaction.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_auth_handler_factory.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M net/http/http_auth_multi_round_parse.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_log_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_response_headers.cc View 8 chunks +11 lines, -19 lines 0 comments Download
M net/http/http_util.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M net/http/transport_security_state.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/proxy/proxy_bypass_rules.cc View 1 2 chunks +4 lines, -6 lines 0 comments Download
M net/server/http_server.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/server/http_server_request_info.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M net/server/http_server_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_http_utils.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/test/embedded_test_server/http_request.cc View 1 1 chunk +3 lines, -4 lines 0 comments Download
M net/tools/quic/spdy_balsa_utils.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/url_request/url_request_backoff_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_throttler_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M pdf/document_loader.cc View 1 chunk +1 line, -1 line 0 comments Download
M pdf/pdfium/pdfium_page.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/proxy/file_chooser_resource.cc View 1 chunk +1 line, -2 lines 0 comments Download
M remoting/signaling/jid_util.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M sql/statement.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M storage/common/database/database_identifier.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/public/base/attachment_id_proto.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/public/base/attachment_id_proto_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ui/base/clipboard/clipboard_util_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/chromeos/network/network_connect.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/font_fallback_win.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/gfx/font_list_unittest.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M ui/gfx/font_unittest.cc View 4 chunks +5 lines, -10 lines 0 comments Download
M ui/gfx/render_text_unittest.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M ui/gl/gl_version_info.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 25 (11 generated)
brettw
[Low priority] Ryan: please look at net\http\http_response_headers.cc (and any other parts of net you care ...
5 years, 4 months ago (2015-08-10 22:46:01 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282363003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282363003/20001
5 years, 4 months ago (2015-08-10 22:46:19 UTC) #4
Ryan Sleevi
I only saw three cases of the .c_str() example, so maybe I missed something. re: ...
5 years, 4 months ago (2015-08-10 22:55:00 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/86919)
5 years, 4 months ago (2015-08-10 22:57:03 UTC) #7
brettw
On 2015/08/10 22:55:00, Ryan Sleevi wrote: > I only saw three cases of the .c_str() ...
5 years, 4 months ago (2015-08-10 23:13:01 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282363003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282363003/20001
5 years, 4 months ago (2015-08-10 23:46:13 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/97449)
5 years, 4 months ago (2015-08-10 23:50:41 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282363003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282363003/20001
5 years, 4 months ago (2015-08-11 16:36:23 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/97684)
5 years, 4 months ago (2015-08-11 16:41:22 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282363003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282363003/40001
5 years, 4 months ago (2015-08-11 16:49:50 UTC) #18
yzshen1
LGTM I only looked at those files that you mentioned in the description. Thanks for ...
5 years, 4 months ago (2015-08-11 18:05:50 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282363003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282363003/40001
5 years, 4 months ago (2015-08-11 18:10:08 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 4 months ago (2015-08-11 19:30:39 UTC) #24
commit-bot: I haz the power
5 years, 4 months ago (2015-08-11 19:31:43 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8e2106dd88a61950569f9cfa8a94ad436d858658
Cr-Commit-Position: refs/heads/master@{#342869}

Powered by Google App Engine
This is Rietveld 408576698