Chromium Code Reviews| Index: components/url_formatter/elide_url.cc |
| diff --git a/components/url_formatter/elide_url.cc b/components/url_formatter/elide_url.cc |
| index 45984304a0fd4dd99557e8db7e5f492044986bce..15798538fe68d420d98a3d8adc85464656dccbff 100644 |
| --- a/components/url_formatter/elide_url.cc |
| +++ b/components/url_formatter/elide_url.cc |
| @@ -140,7 +140,7 @@ base::string16 FormatUrlForSecurityDisplayInternal(const GURL& url, |
| const std::string& host = origin.host(); |
| base::string16 result; |
| - if (!omit_scheme || !url.SchemeIsHTTPOrHTTPS()) |
| + if (!omit_scheme || !url.SchemeIs(url::kHttpsScheme)) |
|
palmer
2016/03/30 20:23:34
Maybe url.SchemeIsCryptographic()?
|
| result = base::UTF8ToUTF16(scheme) + scheme_separator; |
| result += base::UTF8ToUTF16(host); |