Index: chrome/browser/safe_browsing/safe_browsing_util.cc |
diff --git a/chrome/browser/safe_browsing/safe_browsing_util.cc b/chrome/browser/safe_browsing/safe_browsing_util.cc |
index 03346378b39138e5c4968c79978cd0ff27e90e91..4b04c66f3ee1fa1a4e23fd5ad1f17637b7101269 100644 |
--- a/chrome/browser/safe_browsing/safe_browsing_util.cc |
+++ b/chrome/browser/safe_browsing/safe_browsing_util.cc |
@@ -335,9 +335,8 @@ void CanonicalizeUrl(const GURL& url, |
(parsed.host.len > 0) |
? url_unescaped_str.substr(parsed.host.begin, parsed.host.len) |
: std::string(); |
- const char kCharsToTrim[] = "."; |
std::string host_without_end_dots; |
- base::TrimString(host, kCharsToTrim, &host_without_end_dots); |
+ base::TrimString(host, ".", &host_without_end_dots); |
// 4. In hostname, replace consecutive dots with a single dot. |
std::string host_without_consecutive_dots(RemoveConsecutiveChars( |