Commit ce9bf93a authored by Xinghui Lu's avatar Xinghui Lu Committed by Commit Bot

Replace SanitizeURL with SimplifyUrlForRequest in url_util

Fixed: 1126112
Change-Id: I189b4971e6382c28298e62b7e9ccd139c1384cdc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2437315
Auto-Submit: Xinghui Lu <xinghuilu@chromium.org>
Reviewed-by: default avatarDaniel Rubery <drubery@chromium.org>
Commit-Queue: Xinghui Lu <xinghuilu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#812299}
parent 10cb9db4
...@@ -174,11 +174,7 @@ SBThreatType RealTimeUrlLookupServiceBase::GetSBThreatTypeForRTThreatType( ...@@ -174,11 +174,7 @@ SBThreatType RealTimeUrlLookupServiceBase::GetSBThreatTypeForRTThreatType(
// static // static
GURL RealTimeUrlLookupServiceBase::SanitizeURL(const GURL& url) { GURL RealTimeUrlLookupServiceBase::SanitizeURL(const GURL& url) {
GURL::Replacements replacements; return net::SimplifyUrlForRequest(url);
replacements.ClearRef();
replacements.ClearUsername();
replacements.ClearPassword();
return url.ReplaceComponents(replacements);
} }
// static // static
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment