-
Charles Harrison authored
URLs do not always have lowercase hosts. Namely, escape chars in URL hosts are uppercase: GURL("https://www.,.com/").host() == "www.%2C.com" Additionally, this CL has two small optimizations: 1. Null-check the inner URL before checking SchemeIsFilesystem which saves a strlen 2. Remove a call to LowercaseEqualsASCII in favor of just regular comparison, since both inputs need to be canonicalized anyway. Bug: None Change-Id: I1c275fd0d247d020a021c34ce6af13a7adc45b47 Reviewed-on: https://chromium-review.googlesource.com/634157 Commit-Queue: Charlie Harrison <csharrison@chromium.org> Reviewed-by: Brett Wilson <brettw@chromium.org> Reviewed-by: Pavel Kalinnikov <pkalinnikov@chromium.org> Cr-Commit-Position: refs/heads/master@{#498668}
81dc2fb8